Skip to content

Commit

Permalink
Add cencoding to mock modules for readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Durant committed Jul 28, 2021
1 parent 40d646c commit de29755
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@
import sys
from unittest.mock import MagicMock


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


MOCK_MODULES = ['fastparquet.speedups']
MOCK_MODULES = ['fastparquet.speedups', 'fastparquet.cencoding']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

APP_DIR = os.path.normpath(os.path.join(os.getcwd(), '../..'))
Expand Down

0 comments on commit de29755

Please sign in to comment.