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

@@ -6,6 +6,12 @@ from auto_archiver.modules.gdrive_storage import GDriveStorage
from tests.storages.test_storage_base import TestStorageBase
@pytest.fixture(autouse=True)
def mock_sleep(mocker):
"""Mock time.sleep to avoid delays."""
return mocker.patch("time.sleep")
@pytest.fixture
def gdrive_storage(setup_module, mocker) -> GDriveStorage:
module_name: str = "gdrive_storage"