Skip to content

Commit

Permalink
mock modules
Browse files Browse the repository at this point in the history
  • Loading branch information
cdanielmachado committed Aug 4, 2017
1 parent 2db0155 commit fc5d607
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
import sys
import os

import mock

MOCK_MODULES = ['cplex', 'gurobipy', 'matplotlib']

for mod_name in MOCK_MODULES:
sys.modules[mod_name] = mock.Mock()


# If extensions (or modules to document with autodoc) are in another
# directory, add these directories to sys.path here. If the directory is
# relative to the documentation root, use os.path.abspath to make it
Expand Down

0 comments on commit fc5d607

Please sign in to comment.