Skip to content
Snippets Groups Projects
Commit 20bb77bd authored by Brian Warner's avatar Brian Warner
Browse files

Merge pull request #85 from alex/remove-mocking

Removing the mocking in the docs -- refs #52
parents 904698d2 f02027a1
No related branches found
No related tags found
No related merge requests found
...@@ -186,28 +186,3 @@ intersphinx_mapping = {"http://docs.python.org/": None} ...@@ -186,28 +186,3 @@ intersphinx_mapping = {"http://docs.python.org/": None}
# Enable the new ReadTheDocs theme # Enable the new ReadTheDocs theme
RTD_NEW_THEME = True RTD_NEW_THEME = True
# Mock out CFFI
class Mock(object):
def __init__(self, *args, **kwargs):
pass
def __call__(self, *args, **kwargs):
return Mock()
@classmethod
def __getattr__(cls, name):
if name in ('__file__', '__path__'):
return '/dev/null'
else:
return Mock()
def __floordiv__(self, other):
return Mock()
MOCK_MODULES = [
"cffi", "cffi.vengine_cpy", "cffi.vengine_gen", "cffi.verifier",
]
for mod_name in MOCK_MODULES:
sys.modules[mod_name] = Mock()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment