diff --git a/tests/foreman/api/test_webhook.py b/tests/foreman/api/test_webhook.py index 9e0df5ebfe2..019ac42484c 100644 --- a/tests/foreman/api/test_webhook.py +++ b/tests/foreman/api/test_webhook.py @@ -167,7 +167,7 @@ def test_positive_event_triggered(self, module_org, target_sat, setting_update): repo = target_sat.api.Repository( organization=module_org, content_type='yum', url=settings.repos.yum_0.url ).create() - with target_sat.api.session.shell() as shell: + with target_sat.session.shell() as shell: shell.send('foreman-tail') repo.sync() assert_event_triggered(shell, hook.event)