diff --git a/certbot-apache/src/certbot_apache/_internal/tests/conftest.py b/certbot-apache/src/certbot_apache/_internal/tests/conftest.py new file mode 100644 index 000000000..1cddad613 --- /dev/null +++ b/certbot-apache/src/certbot_apache/_internal/tests/conftest.py @@ -0,0 +1,8 @@ +from unittest import mock + +import pytest + +@pytest.fixture(autouse=True) +def mock_sleep(): + with mock.patch("time.sleep") as mocked: + yield mocked diff --git a/certbot-dns-route53/src/certbot_dns_route53/_internal/tests/conftest.py b/certbot-dns-route53/src/certbot_dns_route53/_internal/tests/conftest.py new file mode 100644 index 000000000..1cddad613 --- /dev/null +++ b/certbot-dns-route53/src/certbot_dns_route53/_internal/tests/conftest.py @@ -0,0 +1,8 @@ +from unittest import mock + +import pytest + +@pytest.fixture(autouse=True) +def mock_sleep(): + with mock.patch("time.sleep") as mocked: + yield mocked