Skip to content
Snippets Groups Projects
Commit f02027a1 authored by Alex Gaynor's avatar Alex Gaynor
Browse files

Removing the mocking in the docs -- refs #52

parent 904698d2
No related branches found
No related tags found
No related merge requests found
......@@ -186,28 +186,3 @@ intersphinx_mapping = {"http://docs.python.org/": None}
# Enable the new ReadTheDocs theme
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.
Finish editing this message first!
Please register or to comment