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
This commit is contained in:
Vladyslav Drok 2017-04-22 17:15:06 +03:00
parent 8aec5fb6a5
commit 1ff76227ed

View File

@ -67,13 +67,6 @@ add_module_names = True
# The name of the Pygments (syntax highlighting) style to use. # The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx' 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 # 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 files. They are matched against the source file names relative to the
# source directory, using slashes as directory separators on all platforms. # source directory, using slashes as directory separators on all platforms.