From 11c782d5f7df29cfd93b829a4fb1d28db460b409 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Torres=20Marroqu=C3=ADn?= Date: Fri, 6 Dec 2024 09:48:50 -0600 Subject: [PATCH] Hj-298 - Fix tests/ctl/core/test_api.py::TestSystemList::test_vendor_deleted_systems test --- tests/ctl/core/test_api.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/ctl/core/test_api.py b/tests/ctl/core/test_api.py index bfca14dd84..1a47e32b80 100644 --- a/tests/ctl/core/test_api.py +++ b/tests/ctl/core/test_api.py @@ -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( @@ -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