diff --git a/tests/foreman/api/test_http_proxy.py b/tests/foreman/api/test_http_proxy.py index ee6d1ef4758..b1b14c8aa8d 100644 --- a/tests/foreman/api/test_http_proxy.py +++ b/tests/foreman/api/test_http_proxy.py @@ -100,7 +100,8 @@ def test_positive_end_to_end(setup_http_proxy, module_target_sat, module_manifes # Update to selected_http_proxy module_target_sat.api.Repository(id=repo_2.id, http_proxy_policy='none').update() - assert repo_2.read().http_proxy_policy == 'none' + repo_2 = repo_2.read() + assert repo_2.http_proxy_policy == 'none' # test scenario for yum type repo discovery. repo_name = 'fakerepo01'