sphinx/tests/roots/test-root/autodoc_missing_imports.py
Robin Jarry c24dffc5a8 autodoc: only mock specified modules with their descendants
Do not mock the ancestors of the specified modules in
autodoc_mock_imports. Only mock the modules themselves and their
descendants (as specified in the docs).

Fix the test configs accordingly.

Signed-off-by: Robin Jarry <robin@jarry.cc>
2018-01-13 17:24:02 +01:00

23 lines
619 B
Python

import missing_module
from missing_module import missing_name
import missing_package1.missing_module1
from missing_package2 import missing_module2
from missing_package3.missing_module3 import missing_name
import sphinx.missing_module4
from sphinx.missing_module4 import missing_name2
@missing_name
def decoratedFunction():
"""decoratedFunction docstring"""
return None
class TestAutodoc(object):
"""TestAutodoc docstring."""
@missing_name
def decoratedMethod(self):
"""TestAutodoc::decoratedMethod docstring"""
return None
sphinx.missing_module4.missing_function(len(missing_name2))