From dcf01e929c5ee01c7a05003af62d4c58c0ba8aad Mon Sep 17 00:00:00 2001 From: kakwa Date: Tue, 3 Nov 2015 01:07:54 +0100 Subject: [PATCH] trying to fix conf error --- docs/conf.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 042f0fb..7dc07fb 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -16,6 +16,16 @@ # documentation root, use os.path.abspath to make it absolute, like shown here. import os import sys +import sys +from unittest.mock import MagicMock + +class Mock(MagicMock): + @classmethod + def __getattr__(cls, name): + return Mock() + +MOCK_MODULES = ['ldap'] +sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES) sys.path.insert(0, os.path.abspath('..')) @@ -50,7 +60,7 @@ copyright = u'2015, Pierre-Francois Carpentier' # # The short X.Y version. # The full version, including alpha/beta/rc tags. -release = '0.1.0' +release = '0.2.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.