mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Unittests for some of module_common.py (#20812)
* Unittests for some of module_common.py * Port test_run_command to use pytest-mock The use of addCleanup(patch.stopall) from the unittest idiom was conflicting with the pytest-mock idiom of closing all patches automatically. Switching to pytest-mock ensures that the patches are closed and removing the stopall stops the conflict.
This commit is contained in:
@@ -5,6 +5,7 @@ nose
|
||||
passlib
|
||||
pycrypto
|
||||
pytest
|
||||
pytest-mock
|
||||
python-memcached
|
||||
pyyaml
|
||||
redis
|
||||
|
||||
Reference in New Issue
Block a user