mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-22 20:13:59 -07: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:
parent
83d767ca37
commit
1609afbd12
3 changed files with 127 additions and 8 deletions
|
@ -5,6 +5,7 @@ nose
|
|||
passlib
|
||||
pycrypto
|
||||
pytest
|
||||
pytest-mock
|
||||
python-memcached
|
||||
pyyaml
|
||||
redis
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue