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