From e5ee959fb05c00786d079a2da1b1201a0b736c5d Mon Sep 17 00:00:00 2001 From: vijay sawant Date: Wed, 13 Dec 2023 17:50:58 +0530 Subject: [PATCH] keyword argument server config required (#13427) --- tests/foreman/api/test_subscription.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/foreman/api/test_subscription.py b/tests/foreman/api/test_subscription.py index 5d5a2aedd38..bccb968f479 100644 --- a/tests/foreman/api/test_subscription.py +++ b/tests/foreman/api/test_subscription.py @@ -208,11 +208,11 @@ def test_positive_delete_manifest_as_another_user( ) # use the first admin to upload a manifest with function_entitlement_manifest as manifest: - target_sat.api.Subscription(sc1, organization=function_org).upload( + target_sat.api.Subscription(server_config=sc1, organization=function_org).upload( data={'organization_id': function_org.id}, files={'content': manifest.content} ) # try to search and delete the manifest with another admin - target_sat.api.Subscription(sc2, organization=function_org).delete_manifest( + target_sat.api.Subscription(server_config=sc2, organization=function_org).delete_manifest( data={'organization_id': function_org.id} ) assert len(target_sat.cli.Subscription.list({'organization-id': function_org.id})) == 0