aboutsummaryrefslogtreecommitdiff
path: root/test-requirements.txt
diff options
context:
space:
mode:
authorWill Szumski <will@stackhpc.com>2020-05-07 10:18:37 +0100
committerWill Szumski <will@stackhpc.com>2020-05-11 13:47:12 +0100
commit4fcbdd77401691dde1c433b6c40e9ddbb506070d (patch)
treebe383dbb718ad34fe3fd02a5b81c074170f483d2 /test-requirements.txt
parenta5c1d366264ecfb60ac2a1e6b0c63278a9947010 (diff)
downloadkolla-ansible-4fcbdd77401691dde1c433b6c40e9ddbb506070d.tar.gz
kolla-ansible-4fcbdd77401691dde1c433b6c40e9ddbb506070d.zip
Stop mocking ansible modules globally
This causes non-local side effects that are hard to track down. E.g: --- import errors --- Failed to import test module: tests.test_merge_yaml Traceback (most recent call last): File "/home/will/.pyenv/versions/3.7.7/lib/python3.7/unittest/loader.py", line 436, in _find_test_path module = self._get_module_from_name(name) File "/home/will/.pyenv/versions/3.7.7/lib/python3.7/unittest/loader.py", line 377, in _get_module_from_name __import__(name) File "/home/will/code/kolla-ansible/tests/test_merge_yaml.py", line 19, in <module> from ansible.errors import AnsibleModuleError ModuleNotFoundError: No module named 'ansible.errors'; 'ansible' is not a package This `'ansible' is not a package` message occurs because ansible is a Mock. Depends-On: https://review.opendev.org/#/c/726768/ Change-Id: Iddbdd3d855daadbf12536cc990559e6b8e123051
Diffstat (limited to 'test-requirements.txt')
-rw-r--r--test-requirements.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/test-requirements.txt b/test-requirements.txt
index d1e5b433f..6b327bee8 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -11,3 +11,4 @@ coverage!=4.4,>=4.0 # Apache-2.0
docker>=2.4.2 # Apache-2.0
oslotest>=3.2.0 # Apache-2.0
stestr>=2.0.0 # Apache-2.0
+ansible>=2.8.0 # GPLv3