From 1ff76227edb477515355bee8d4294b816ecf8ca8 Mon Sep 17 00:00:00 2001 From: Vladyslav Drok Date: Sat, 22 Apr 2017 17:15:06 +0300 Subject: [PATCH] Remove nova mocks from documentation configuration All nova related stuff was removed from tree, so no need to mock the nova modules. Change-Id: Ib8a413785401c387dd7a8e4d686d8b5316d43770 --- doc/source/conf.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 9c28b3f331..b7f4a7d34e 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -67,13 +67,6 @@ add_module_names = True # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' -# NOTE(cinerama): mock out nova modules so docs can build without warnings -import mock -import sys -MOCK_MODULES = ['nova', 'nova.compute', 'nova.context'] -for module in MOCK_MODULES: - sys.modules[module] = mock.Mock() - # A list of glob-style patterns that should be excluded when looking for # source files. They are matched against the source file names relative to the # source directory, using slashes as directory separators on all platforms.