Skip to content

Commit

Permalink
made numpy a mock module
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewAnnex committed Nov 22, 2014
1 parent 93b7ea4 commit cb84d12
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/conf.py
Expand Up @@ -21,6 +21,20 @@
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))

# EXTRA BITS FOR SPICEYPY
from unittest.mock import MagicMock


class Mock(MagicMock):
@classmethod
def __getattr__(cls, name):
return Mock()


MOCK_MODULES = ['numpy']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)


# -- General configuration ------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
Expand Down

0 comments on commit cb84d12

Please sign in to comment.