Skip to content

Commit

Permalink
Removing the mocking in the docs -- refs #52
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Jul 13, 2014
1 parent 904698d commit f02027a
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions docs/conf.py
Expand Up @@ -186,28 +186,3 @@

# 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 comments on commit f02027a

Please sign in to comment.