Skip to content

Commit

Permalink
uncommented mock code for readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
lowcloudnine committed Jun 3, 2016
1 parent 1a86a20 commit 061d751
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
import os


# 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)
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)

# End of mock

Expand Down

0 comments on commit 061d751

Please sign in to comment.