Fix mypy method-assign in cleanup task test

This commit is contained in:
nendo
2026-03-24 06:39:34 +09:00
parent 18864a54f9
commit 4ffa94c9d9

View File

@@ -22,7 +22,7 @@ class TestCleanupZipCacheTask:
async def test_run_disabled_unschedules(self, mocker):
task = CleanupZipCacheTask()
task.enabled = False
task.unschedule = AsyncMock()
mocker.patch.object(task, "unschedule", new_callable=AsyncMock)
mock_cleanup = mocker.patch(
"tasks.scheduled.cleanup_zip_cache.cleanup_stale_zips",
)