certbot/certbot-apache/tests
ohemorange 8fb9a395ab
Do not require mock in Python 3 in apache module (#7896)
Part of #7886.

This PR conditionally installs mock in `apache/setup.py` based on setuptools version and python version, when possible. It then updates `apache` tests to use `unittest.mock` when `mock` isn't available.

* Conditionally install mock in apache

* error out on newer python and older setuptools

* error when trying to build wheels with old setuptools

* use unittest.mock when third-party mock isn't available in apache, with no cover and type ignore
2020-04-15 11:30:08 -07:00
..
apache-conf-files Refactor tests out of packaged module for apache plugin (#7607) 2019-11-27 09:57:35 -08:00
testdata Spelling and grammar fixes (#7695) 2020-01-17 18:55:51 +01:00
augeasnode_test.py Do not require mock in Python 3 in apache module (#7896) 2020-04-15 11:30:08 -07:00
autohsts_test.py Do not require mock in Python 3 in apache module (#7896) 2020-04-15 11:30:08 -07:00
centos6_test.py Minor bugfixes (#7891) 2020-04-13 10:41:39 -07:00
centos_test.py Do not require mock in Python 3 in apache module (#7896) 2020-04-15 11:30:08 -07:00
complex_parsing_test.py Reorganize imports (#7616) 2019-12-09 15:50:20 -05:00
configurator_reverter_test.py Do not require mock in Python 3 in apache module (#7896) 2020-04-15 11:30:08 -07:00
configurator_test.py Do not require mock in Python 3 in apache module (#7896) 2020-04-15 11:30:08 -07:00
debian_test.py Do not require mock in Python 3 in apache module (#7896) 2020-04-15 11:30:08 -07:00
display_ops_test.py Do not require mock in Python 3 in apache module (#7896) 2020-04-15 11:30:08 -07:00
dualnode_test.py Do not require mock in Python 3 in apache module (#7896) 2020-04-15 11:30:08 -07:00
entrypoint_test.py Do not require mock in Python 3 in apache module (#7896) 2020-04-15 11:30:08 -07:00
fedora_test.py Do not require mock in Python 3 in apache module (#7896) 2020-04-15 11:30:08 -07:00
gentoo_test.py Do not require mock in Python 3 in apache module (#7896) 2020-04-15 11:30:08 -07:00
http_01_test.py Do not require mock in Python 3 in apache module (#7896) 2020-04-15 11:30:08 -07:00
obj_test.py Minor bugfixes (#7891) 2020-04-13 10:41:39 -07:00
parser_test.py Do not require mock in Python 3 in apache module (#7896) 2020-04-15 11:30:08 -07:00
parsernode_configurator_test.py Do not require mock in Python 3 in apache module (#7896) 2020-04-15 11:30:08 -07:00
parsernode_test.py Modifications needed for merging to master 2020-01-06 17:19:33 +02:00
parsernode_util_test.py Modifications needed for merging to master 2020-01-06 17:19:33 +02:00
util.py Do not require mock in Python 3 in apache module (#7896) 2020-04-15 11:30:08 -07:00