Skip to content

Commit

Permalink
fixed mock comment issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lowcloudnine committed Jun 4, 2016
1 parent 33f2b01 commit 280f6b9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@


# Adding mock imports to see if this builds
# from unittest.mock import MagicMock
#
# class Mock(MagicMock):
# @classmethod
# def __getattr__(cls, name):
# return Mock()
#
# MOCK_MODULES = ['numpy', 'pandas']
# sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
from unittest.mock import MagicMock

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

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

# End of mock

Expand Down

0 comments on commit 280f6b9

Please sign in to comment.