From 8c5d2360667d36043fe10e0cec22f9ac5e776238 Mon Sep 17 00:00:00 2001 From: beeankha Date: Thu, 23 Apr 2020 14:12:53 -0400 Subject: [PATCH] Update unit tests to not pull in version warnings --- awx_collection/test/awx/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: