dockercloud
This commit is contained in:
parent
86f4a232ff
commit
2d9586a8a1
41 changed files with 2701 additions and 2 deletions
12
tests/__init__.py
Normal file
12
tests/__init__.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
__author__ = 'fermayo'
|
||||
|
||||
# Python 3.4.2 includes mock in-box, prefer that version
|
||||
# For other versions, patch it up to use the external mock library
|
||||
try:
|
||||
from unittest import mock
|
||||
except ImportError:
|
||||
import sys
|
||||
|
||||
sys.modules['unittest'] = __import__('unittest')
|
||||
sys.modules['unittest.mock'] = __import__('mock')
|
||||
setattr(sys.modules['unittest'], 'mock', __import__('mock'))
|
||||
Loading…
Add table
Add a link
Reference in a new issue