mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 00:22:28 +02:00
Mock augeas and M2Crypto in docs (fixes #262).
This commit is contained in:
@@ -17,6 +17,13 @@ import os
|
|||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
import mock
|
||||||
|
|
||||||
|
|
||||||
|
# http://docs.readthedocs.org/en/latest/faq.html#i-get-import-errors-on-libraries-that-depend-on-c-modules
|
||||||
|
sys.modules.update(
|
||||||
|
(mod_name, mock.MagicMock()) for mod_name in ['augeas', 'M2Crypto'])
|
||||||
|
|
||||||
here = os.path.abspath(os.path.dirname(__file__))
|
here = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
|
||||||
# read version number (and other metadata) from package init
|
# read version number (and other metadata) from package init
|
||||||
|
|||||||
Reference in New Issue
Block a user