Skip to content

Commit

Permalink
Add mock for pandas for RTD
Browse files Browse the repository at this point in the history
  • Loading branch information
jnmclarty committed Mar 22, 2015
1 parent 9349633 commit cd3a728
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,3 +268,16 @@

# If true, do not generate a @detailmenu in the "Top" node's menu.
#texinfo_no_detailmenu = False

try:
from unittest.mock import MagicMock
except ImportError:
from mock import Mock as MagicMock

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

MOCK_MODULES = ['pandas']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SQLalchemy>=0.9
smuggle==0.2.0
pandas>=0.15
Quandl>=2.8

0 comments on commit cd3a728

Please sign in to comment.