Skip to content

Commit

Permalink
Merge 11c782d into ca8e847
Browse files Browse the repository at this point in the history
  • Loading branch information
andres-torres-marroquin authored Dec 6, 2024
2 parents ca8e847 + 11c782d commit 209b2e0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/ctl/core/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1669,9 +1669,9 @@ def test_list_with_pagination_and_multiple_filters_2(
"vendor_deleted_date, expected_systems_count, show_deleted",
[
(datetime.now() - timedelta(days=1), 1, True),
(datetime.now() - timedelta(days=1), 0, None),
(datetime.now() + timedelta(days=1), 1, None),
(None, 1, None),
(datetime.now() - timedelta(days=1), 0, False),
(datetime.now() + timedelta(days=1), 1, False),
(None, 1, False),
],
)
def test_vendor_deleted_systems(
Expand All @@ -1691,13 +1691,13 @@ def test_vendor_deleted_systems(
url=test_config.cli.server_url,
headers=test_config.user.auth_header,
resource_type="system",
query_params={"show_deleted": True} if show_deleted else {},
query_params={"show_deleted": show_deleted, "size": 50},
)

assert result.status_code == 200
result_json = result.json()

assert len(result_json) == expected_systems_count
assert len(result_json["items"]) == expected_systems_count


@pytest.mark.unit
Expand Down

0 comments on commit 209b2e0

Please sign in to comment.