mirror of
https://github.com/ansible/awx.git
synced 2026-03-14 07:27:28 -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
|
||||
|
||||
|
||||
@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:
|
||||
|
||||
Reference in New Issue
Block a user