diff --git a/awx_collection/test/awx/conftest.py b/awx_collection/test/awx/conftest.py index 30e8866320..ff74090498 100644 --- a/awx_collection/test/awx/conftest.py +++ b/awx_collection/test/awx/conftest.py @@ -245,7 +245,7 @@ def silence_deprecation(): yield this_mock -@pytest.fixture +@pytest.fixture(autouse=True) def silence_warning(): """Warnings use global variable, same as deprecations.""" with mock.patch('ansible.module_utils.basic.AnsibleModule.warn') as this_mock: