Will Szumski 4fcbdd7740 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
2020-05-11 13:47:12 +01:00
..
2016-01-13 13:47:49 +08:00
2018-11-06 16:43:19 +00:00
2020-03-01 09:57:35 +01:00
2020-04-24 15:57:55 +02:00
2020-04-28 19:15:06 +02:00
2019-07-02 20:44:33 +02:00
2020-04-20 16:57:53 +00:00
2020-02-11 11:42:06 +01:00
2020-01-28 14:03:33 -08:00
2019-11-07 18:03:07 +00:00
2019-08-14 12:32:51 -04:00
2020-05-01 18:03:14 +02:00
2019-12-10 13:19:17 +00:00
2020-02-25 10:08:54 -08:00