Remove autouse property of mock_sleep.

This commit is contained in:
erinhmclark
2025-03-13 15:23:35 +00:00
parent 16012df30b
commit 0bef78b0b4
6 changed files with 29 additions and 9 deletions

View File

@@ -145,9 +145,9 @@ def sample_datetime():
return datetime(2023, 1, 1, 12, 0, tzinfo=timezone.utc)
@pytest.fixture(autouse=True)
@pytest.fixture
def mock_sleep(mocker):
"""Globally mock time.sleep to avoid delays."""
"""Mock time.sleep to avoid delays."""
return mocker.patch("time.sleep")