certbot/tools
ohemorange b362109bf6
Fix certbot tests after updating pytest to 9.0.2 (#10545)
Fixes  #10518.

`tools/pinning/current/repin.sh` is not run; only pytest version is
updated. This is because `pypinning` had a bunch of syntax changes that
seem simply but I believe should be in a separate PR, which I think
should be done after this to collect all repin changes.

As discussed further in #10518, these issues were caused by pytest's
internalization of pytest-subtest, which had several implementation
changes.

To fix these, we simply no longer use subtest in the failing tests. The
test in acme is now parametrized instead, and the tests in apache only
ever had a single parameter.

To use parametrization in the acme test, I converted `DNSTest` from
unittest to pytest style, which was pretty straightforward. The only
note there is that while it would be nice to make `ec_secp384r1_key` a
fixture, you [can't use fixtures in
parameters](https://github.com/pytest-dev/pytest/issues/349). You could
use requests, but that seemed less clear and messier, because then you'd
be checking the value of the parameter and only sometimes loading it.
Could also make it a global variable, but that didn't really seem
necessary, as it's only called twice. Happy to consider other options,
not strongly tied to this one, just seemed nicest to me.
2026-02-02 12:13:24 -08:00
..
docker Add codespell support (CI to check, not to fix) and make it fix a few typos (#10297) 2025-06-24 13:14:31 +09:00
pinning Add python 3.14 support (#10481) 2025-11-04 10:49:51 -08:00
snap Set up dns plugins to use pyproject.toml (#10425) 2025-08-15 09:17:15 -07:00
_release.sh stop running setup.py and switch to python -m build (#10442) 2025-08-22 11:03:00 -07:00
extract_changelog.py Run changelog generation stage on ubuntu-latest, nightly (#10349) 2025-06-20 09:38:34 -07:00
finish_release.py fix finish_release.py (#10503) 2025-12-04 15:15:25 -08:00
oldest_constraints.txt Add python 3.14 support (#10481) 2025-11-04 10:49:51 -08:00
pip_install.py Drop in uv for pip (#10428) 2025-08-18 13:17:02 -07:00
pipstrap.py Always "pipstrap" when running pip_install.py (#9658) 2023-04-05 16:43:26 -07:00
release.sh switch from gpg2 to gpg (#9985) 2024-08-19 15:24:39 -07:00
requirements.txt Fix certbot tests after updating pytest to 9.0.2 (#10545) 2026-02-02 12:13:24 -08:00
retry.sh Automatically retry test farm tests (#8325) 2020-09-30 17:05:52 -07:00
sphinx-quickstart.sh update intersphinx mapping (#10074) 2024-12-03 11:16:13 -08:00
venv.py remove python 3.9 support (#10406) 2025-08-12 17:49:02 +00:00