Recover task metadata store schema on startup

This commit is contained in:
showtan001
2026-08-30 21:50:57 +08:00
parent 697e54427b
commit 5b8daab457
2 changed files with 30 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
from storage.task_metadata import TaskMetadataStore
def test_store_recovers_from_preexisting_empty_database(tmp_path) -> None:
path = tmp_path / "task_progress.sqlite3"
path.touch()
store = TaskMetadataStore(path)
assert store.list_tasks() == []