Update unit tests to not pull in version warnings

This commit is contained in:
beeankha
2020-04-23 14:12:53 -04:00
committed by AlanCoding
parent 81eb9bb78a
commit 8c5d236066

View File

@@ -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: