From 7cba9c22dae7df205da9b932ac5a49dbc6417dc4 Mon Sep 17 00:00:00 2001
From: Donald Stufft <donald@stufft.io>
Date: Sun, 24 Feb 2013 14:03:57 -0500
Subject: [PATCH] Properly Mock out the dependencies for building the docs

---
 docs/conf.py | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/docs/conf.py b/docs/conf.py
index 829ad463..e98e1213 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -11,12 +11,13 @@
 # All configuration values have a default; values that are commented out
 # serve to show the default.
 
-import sys, os
+import os
+import sys
 
 # If extensions (or modules to document with autodoc) are in another directory,
 # add these directories to sys.path here. If the directory is relative to the
 # documentation root, use os.path.abspath to make it absolute, like shown here.
-#sys.path.insert(0, os.path.abspath('.'))
+sys.path.insert(0, os.path.abspath('..'))
 
 # -- General configuration -----------------------------------------------------
 
@@ -255,10 +256,8 @@ class Mock(object):
     def __getattr__(cls, name):
         if name in ("__file__", "__path__"):
             return "/dev/null"
-        elif name[0] == name[0].upper():
-            mockType = type(name, (), {})
-            mockType.__module__ = __name__
-            return mockType
+        elif name in ("__name__",):
+            return "mocked"
         else:
             return Mock()
 
-- 
GitLab