Skip to content

Commit

Permalink
[skip ci] try mocking for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tlambert03 committed Mar 5, 2019
1 parent db2e7f4 commit 3086a1c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 12 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,21 @@
#
import os
import sys
from unittest.mock import MagicMock

sys.path.insert(0, os.path.abspath('..'))


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


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


# -- Project information -----------------------------------------------------

project = 'pyCUDAdecon'
Expand Down
2 changes: 0 additions & 2 deletions requirements.txt

This file was deleted.

0 comments on commit 3086a1c

Please sign in to comment.