Skip to content

Commit

Permalink
Update doc/conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pfernique committed Aug 26, 2016
1 parent b49976c commit 96948bd
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,22 +301,22 @@
"""

if on_rtd:
warn('debug -syspath -edit: %s'%os.path.abspath('../..'))
sys.path.insert(0, os.path.abspath('../..'))
# if on_rtd:
# warn('debug -syspath -edit: %s'%os.path.abspath('../..'))
# sys.path.insert(0, os.path.abspath('../..'))

class Mock(MagicMock):
# class Mock(MagicMock):

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

@classmethod
def __getitem__(cls, name):
return Mock()
# @classmethod
# def __getitem__(cls, name):
# return Mock()


MOCK_MODULES = []
# MOCK_MODULES = []

for mod_name in MOCK_MODULES:
sys.modules.update({mod_name: Mock()})
# for mod_name in MOCK_MODULES:
# sys.modules.update({mod_name: Mock()})

0 comments on commit 96948bd

Please sign in to comment.