Skip to content

Commit

Permalink
Add mocking back in
Browse files Browse the repository at this point in the history
  • Loading branch information
bartvm committed Oct 7, 2015
1 parent 2fc06f3 commit 1ca97ae
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import sys
import os
from mock import Mock as MagicMock
from sphinx.ext.autodoc import cut_lines

# If extensions (or modules to document with autodoc) are in another directory,
Expand Down Expand Up @@ -58,6 +59,14 @@
'python': ('http://docs.python.org/3.4', None)
}

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

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

graphviz_dot_args = ['-Gbgcolor=#fcfcfc'] # To match the RTD theme
graphviz_output_format = 'svg' # To produce SVG figures

Expand Down

0 comments on commit 1ca97ae

Please sign in to comment.