Skip to content

Commit

Permalink
mocking...
Browse files Browse the repository at this point in the history
  • Loading branch information
marscher committed Feb 28, 2018
1 parent 09b3744 commit 37f54ac
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
18 changes: 14 additions & 4 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ def __getattribute__(self, item):
return MagicMock()

MOCK_MODULES = ['mdtraj',
'pyemma',
'pyemma.util',
'pyemma.util.types',
'pyemma.coordinates.transform',
'pyemma.coordinates',
'pyemma.coordinates.data',
Expand All @@ -45,12 +48,19 @@ def __getattribute__(self, item):
'pyemma.coordinates.data.featurization.misc',
'pyemma.coordinates.data.featurization.distances',
'nglview',
#'matplotlib',
#'matplotlib.widgets',
'matplotlib',
'matplotlib.widgets',
'matplotlib.figure',
'matplotlib.axes',
'matplotlib.cm',
'matplotlib.colors',
'IPython.display',
'sklearn.mixture',
#'scipy.spatial',
'scipy.spatial',
'six.moves.urllib.request',
#'numpy',
'numpy',
# fixme: can not mock ipywidgets because of multi-inheritance within molpx
#'ipywidgets',
]

sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
Expand Down
2 changes: 2 additions & 0 deletions doc/source/doc_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ nbsphinx
notebook
nbconvert
pandoc
# test:
ipywidgets

0 comments on commit 37f54ac

Please sign in to comment.