diff --git a/tests/foreman/api/test_webhook.py b/tests/foreman/api/test_webhook.py index 29f456b6ec4..677aed5f6b3 100644 --- a/tests/foreman/api/test_webhook.py +++ b/tests/foreman/api/test_webhook.py @@ -185,7 +185,7 @@ def test_negative_event_task_failed(self, module_org, target_sat, setting_update hook = target_sat.api.Webhooks( event='actions.katello.repository.sync_succeeded', http_method='GET' ).create() - repo = entities.Repository( + repo = target_sat.api.Repository( organization=module_org, content_type='yum', url='http://localhost/target' ).create() with target_sat.session.shell() as shell: