From 6d2e9d0fac66e8fbecef252a810b701b7402b67d Mon Sep 17 00:00:00 2001 From: Will Greenberg Date: Wed, 4 Feb 2026 14:26:40 -0800 Subject: [PATCH] skip apache/nginx tests if their dependencies aren't installed --- .../src/certbot/_internal/tests/plugins/apache/__init__.py | 6 ++++++ .../src/certbot/_internal/tests/plugins/nginx/__init__.py | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/certbot/src/certbot/_internal/tests/plugins/apache/__init__.py b/certbot/src/certbot/_internal/tests/plugins/apache/__init__.py index 1dae412f2..97c96aaa3 100644 --- a/certbot/src/certbot/_internal/tests/plugins/apache/__init__.py +++ b/certbot/src/certbot/_internal/tests/plugins/apache/__init__.py @@ -1 +1,7 @@ """certbot-apache tests""" + +import pytest + + +# Make sure we're only running these tests if our apache plugin dependencies are installed +pytest.importorskip("augeas") diff --git a/certbot/src/certbot/_internal/tests/plugins/nginx/__init__.py b/certbot/src/certbot/_internal/tests/plugins/nginx/__init__.py index 7ddcf58b0..60c94e900 100644 --- a/certbot/src/certbot/_internal/tests/plugins/nginx/__init__.py +++ b/certbot/src/certbot/_internal/tests/plugins/nginx/__init__.py @@ -1 +1,6 @@ """certbot-nginx tests""" +import pytest + + +# Make sure we're only running these tests if our nginx plugin dependencies are installed +pytest.importorskip("pyparsing")