Mock more modules for RTD
Also add a requirements.txt for RTD so that it will install Mako into the virtualenv when generating the documentation.
This commit is contained in:
parent
da59f8af4b
commit
9b384e084f
@ -377,6 +377,6 @@ class Mock(object):
|
|||||||
def __getitem__(cls, key):
|
def __getitem__(cls, key):
|
||||||
return cls.__getattr__(key)
|
return cls.__getattr__(key)
|
||||||
|
|
||||||
MOCK_MODULES = ["selinux"]
|
MOCK_MODULES = ["selinux", "dnf", "rpmUtils", "rpmUtils.arch"]
|
||||||
for mod_name in MOCK_MODULES:
|
for mod_name in MOCK_MODULES:
|
||||||
sys.modules[mod_name] = Mock()
|
sys.modules[mod_name] = Mock()
|
||||||
|
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
Mako
|
Loading…
Reference in New Issue
Block a user