Merge "Remove nova mocks from documentation configuration"

This commit is contained in:
Jenkins 2017-04-24 07:29:36 +00:00 committed by Gerrit Code Review
commit 1ef11f9fee

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.