certbot/acme/tests
ohemorange 127d2dc307
Do not require mock in Python 3 in acme module (#7910)
Part of #7886.

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

Now with `type: ignore` as appropriate. Once the "future steps" of #7886 are finished, and mypy is on Python 3, the `pragma no cover`s and `type ignore`s will be gone.

* Conditionally install mock in acme

* 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 acme, with no cover and type ignore
2020-04-15 11:27:55 -07:00
..
testdata Reimplement tls-alpn-01 in acme (#6886) 2020-03-12 13:53:19 -07:00
challenges_test.py Do not require mock in Python 3 in acme module (#7910) 2020-04-15 11:27:55 -07:00
client_test.py Do not require mock in Python 3 in acme module (#7910) 2020-04-15 11:27:55 -07:00
crypto_util_test.py Cleanup more pylint issues (#7848) 2020-03-16 09:43:48 -07:00
errors_test.py Do not require mock in Python 3 in acme module (#7910) 2020-04-15 11:27:55 -07:00
fields_test.py Refactor tests out of packaged module for acme plugin (#7600) 2019-11-26 15:25:41 -08:00
jose_test.py Lint certbot code on Python 3, and update Pylint to the latest version (#7551) 2019-12-10 14:12:50 -08:00
jws_test.py Reorganize imports (#7616) 2019-12-09 15:50:20 -05:00
magic_typing_test.py Do not require mock in Python 3 in acme module (#7910) 2020-04-15 11:27:55 -07:00
messages_test.py Do not require mock in Python 3 in acme module (#7910) 2020-04-15 11:27:55 -07:00
standalone_test.py Do not require mock in Python 3 in acme module (#7910) 2020-04-15 11:27:55 -07:00
test_util.py Lint certbot code on Python 3, and update Pylint to the latest version (#7551) 2019-12-10 14:12:50 -08:00
util_test.py Refactor tests out of packaged module for acme plugin (#7600) 2019-11-26 15:25:41 -08:00