Skip to content

Commit

Permalink
Hj-298 - Fix tests/ctl/core/test_api.py::TestSystemList::test_vendor_…
Browse files Browse the repository at this point in the history
…deleted_systems test (#5570)
  • Loading branch information
andres-torres-marroquin authored Dec 6, 2024
1 parent ca8e847 commit bd7bd4b
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 bd7bd4b

Please sign in to comment.