mirror of
https://github.com/ansible/awx.git
synced 2026-05-23 08:37:48 -02:30
Update unit tests to not pull in version warnings
This commit is contained in:
@@ -245,7 +245,7 @@ def silence_deprecation():
|
|||||||
yield this_mock
|
yield this_mock
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture(autouse=True)
|
||||||
def silence_warning():
|
def silence_warning():
|
||||||
"""Warnings use global variable, same as deprecations."""
|
"""Warnings use global variable, same as deprecations."""
|
||||||
with mock.patch('ansible.module_utils.basic.AnsibleModule.warn') as this_mock:
|
with mock.patch('ansible.module_utils.basic.AnsibleModule.warn') as this_mock:
|
||||||
|
|||||||
Reference in New Issue
Block a user