mirror of
https://github.com/certbot/certbot.git
synced 2026-06-07 15:52:08 -04:00
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 |
||
|---|---|---|
| .. | ||
| testdata | ||
| challenges_test.py | ||
| client_test.py | ||
| crypto_util_test.py | ||
| errors_test.py | ||
| fields_test.py | ||
| jose_test.py | ||
| jws_test.py | ||
| magic_typing_test.py | ||
| messages_test.py | ||
| standalone_test.py | ||
| test_util.py | ||
| util_test.py | ||