Mock time.sleep for more modules to speed up tests (#10427)

The extra 8 seconds isn't really relevant in the test farm, but is nice
to have for local runs. This is based on what was done in
https://github.com/certbot/certbot/pull/10419/.
This commit is contained in:
ohemorange
2025-08-18 09:59:55 -07:00
committed by GitHub
parent 1816e56557
commit 56da12207b
2 changed files with 16 additions and 0 deletions
@@ -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
@@ -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