docs/conf.py

changeset 99
7f307b98889b
parent 98
aacf4fcdd4dd
child 100
b20b59b350d5
equal deleted inserted replaced
98:aacf4fcdd4dd 99:7f307b98889b
30 class Mock(MagicMock): 30 class Mock(MagicMock):
31 @classmethod 31 @classmethod
32 def __getattr__(cls, name): 32 def __getattr__(cls, name):
33 return MagicMock() 33 return MagicMock()
34 34
35 MOCK_MODULES = ['netCDF4', 'numpy', 'scipy',] 35 MOCK_MODULES = ['netCDF4', 'numpy', 'scipy', 'matplotlib']
36 sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES) 36 sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
37 37
38 # -- General configuration ------------------------------------------------ 38 # -- General configuration ------------------------------------------------
39 39
40 # If your documentation needs a minimal Sphinx version, state it here. 40 # If your documentation needs a minimal Sphinx version, state it here.

mercurial