mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-28 11:10:21 -07:00
Mocking out __future__ could cause problems
This commit is contained in:
parent
7b774117ab
commit
473f70c21a
1 changed files with 2 additions and 2 deletions
|
@ -4,10 +4,10 @@
|
||||||
import sys
|
import sys
|
||||||
from ansible.compat.tests.mock import patch, Mock
|
from ansible.compat.tests.mock import patch, Mock
|
||||||
|
|
||||||
|
# FIXME: These should be done inside of a fixture so that they're only mocked during
|
||||||
|
# these unittests
|
||||||
sys.modules['hpOneView'] = Mock()
|
sys.modules['hpOneView'] = Mock()
|
||||||
sys.modules['hpOneView.oneview_client'] = Mock()
|
sys.modules['hpOneView.oneview_client'] = Mock()
|
||||||
sys.modules['future'] = Mock()
|
|
||||||
sys.modules['__future__'] = Mock()
|
|
||||||
|
|
||||||
ONEVIEW_MODULE_UTILS_PATH = 'ansible.module_utils.oneview'
|
ONEVIEW_MODULE_UTILS_PATH = 'ansible.module_utils.oneview'
|
||||||
from ansible.module_utils.oneview import (OneViewModuleException,
|
from ansible.module_utils.oneview import (OneViewModuleException,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue