Skip to content

Commit

Permalink
Add mock numpy and scipy modules to docs/conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
creafz committed Jun 19, 2018
1 parent 7115799 commit a613d5b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import mock
import re
import os
import sys
sys.path.insert(0, os.path.abspath('../'))


MOCK_MODULES = ['numpy', 'scipy']
for module_name in MOCK_MODULES:
sys.modules[module_name] = mock.Mock()


def get_version():
current_dir = os.path.abspath(os.path.dirname(__file__))
root = os.path.dirname(current_dir)
Expand Down

0 comments on commit a613d5b

Please sign in to comment.