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. |