Merge "Use unittest.mock instead of mock"
This commit is contained in:
commit
2e69bf1958
@ -1,4 +1,3 @@
|
||||
mock
|
||||
pre-commit>=1.20.0 # MIT
|
||||
pytest
|
||||
pytest-mock
|
||||
|
@ -6,10 +6,7 @@ import json
|
||||
from ansible.module_utils import basic
|
||||
from ansible.module_utils._text import to_bytes
|
||||
|
||||
try:
|
||||
from unittest.mock import patch # Python 3
|
||||
except ImportError:
|
||||
from mock import patch # Python 2 needs mock package installed
|
||||
from unittest.mock import patch
|
||||
|
||||
|
||||
def set_module_args(**args):
|
||||
|
Loading…
Reference in New Issue
Block a user