Recover task metadata store schema on startup
This commit is contained in:
@@ -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() == []
|
||||
Reference in New Issue
Block a user