Skip to content

Commit

Permalink
Switching back to old mocks since they seem to work.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit Ansmann committed Dec 12, 2017
1 parent 23d3d23 commit 7514dc5
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,24 @@
from setuptools_scm import get_version

# Mocking to make RTD autobuild the documentation.
autodoc_mock_imports = [
#autodoc_mock_imports = [
# 'numpy', 'numpy.testing', 'numpy.random',
# 'scipy',
# 'symengine',
# 'jitcdde._python_core',
# 'jitcxde_common.helpers','jitcxde_common.numerical','jitcxde_common.symbolic','jitcxde_common.transversal'
# ]

from unittest.mock import MagicMock as Mock
MOCK_MODULES = [
'numpy', 'numpy.testing', 'numpy.random',
'scipy',
'symengine',
'jitcdde._python_core',
'symengine', 'symengine.printing', 'symengine.lib.symengine_wrapper',
'jitcxde_common.helpers','jitcxde_common.numerical','jitcxde_common.symbolic','jitcxde_common.transversal'
]
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
sys.path.insert(0,os.path.abspath("../examples"))
sys.path.insert(0,os.path.abspath("../jitcdde"))

Expand Down

0 comments on commit 7514dc5

Please sign in to comment.