From f02027a1c321f7c2e7fd999627cbb92e2570705a Mon Sep 17 00:00:00 2001 From: Alex Gaynor <alex.gaynor@gmail.com> Date: Sun, 13 Jul 2014 07:58:41 -0700 Subject: [PATCH] Removing the mocking in the docs -- refs #52 --- docs/conf.py | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index ec2d8e56..d710d6e1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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() -- GitLab