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.