Skip to content

Commit

Permalink
Mock some modules, don't mock some others.
Browse files Browse the repository at this point in the history
  • Loading branch information
Onager committed Apr 23, 2015
1 parent 84cd6a5 commit 9791974
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ def __getattr__(cls, name):
# Mock all the dependencies! (except the ones we don't want to)
py_mods = [tup[0] for tup in dependencies.PYTHON_DEPENDENCIES]
py_mods.remove('six')
py_mods.remove('dateutil')
py_mods.append('artifacts.knowledgebase')
py_mods.append('dfvfs.helpers')
py_mods.append('dfvfs.analyzer')
py_mods.append('dfvfs.lib')
py_mods.append('dfvfs.resolver')


bin_mods = [key for key, value in dependencies.LIBYAL_DEPENDENCIES.iteritems()]
sys.modules.update((mod_name, Mock()) for mod_name in py_mods)
sys.modules.update((mod_name, Mock()) for mod_name in bin_mods)
Expand Down
2 changes: 2 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
sphinxcontrib-napoleon
dateutil

0 comments on commit 9791974

Please sign in to comment.