File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1414
1515import sys
1616import os
17- # from unittest.mock import MagicMock
17+ from unittest .mock import MagicMock
1818
1919sys .path .insert (0 , os .path .abspath ("../.." ))
2020
2121
22- # class Mock(MagicMock):
23- # @classmethod
24- # def __getattr__(cls, name):
25- # return Mock()
26- #
27- # MOCK_MODULES = [ 'numpy', 'scipy ']
28- # sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
22+ class Mock (MagicMock ):
23+ @classmethod
24+ def __getattr__ (cls , name ):
25+ return Mock ()
26+
27+ MOCK_MODULES = [ 'emd ' ]
28+ sys .modules .update ((mod_name , Mock ()) for mod_name in MOCK_MODULES )
2929
3030# If extensions (or modules to document with autodoc) are in another directory,
3131# add these directories to sys.path here. If the directory is relative to the
You can’t perform that action at this time.
0 commit comments