Skip to content

Commit

Permalink
Add mock imports to doc conf
Browse files Browse the repository at this point in the history
  • Loading branch information
nickmachnik committed Oct 13, 2020
1 parent daf1627 commit 614da8b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html



# -- Path setup --------------------------------------------------------------

# If extensions (or modules to document with autodoc) are in another directory,
Expand All @@ -13,6 +15,13 @@
import os
import sys
sys.path.insert(0, os.path.abspath('..'))
import mock
MOCK_MODULES = [
'numpy', 'scipy', 'matplotlib', 'matplotlib.pyplot',
'scipy.interpolate', 'intervaltree'
]
for mod_name in MOCK_MODULES:
sys.modules[mod_name] = mock.Mock()
import chess

# -- Project information -----------------------------------------------------
Expand Down

0 comments on commit 614da8b

Please sign in to comment.