V2 implementation step 1

This commit is contained in:
Jim Lancaster
2026-08-01 15:34:06 -05:00
parent 00ed176ac1
commit c46d1bd0bc
6 changed files with 212 additions and 136 deletions
+5 -2
View File
@@ -1,4 +1,4 @@
"""Tests for transcription.db runtime and schema bootstrap behavior."""
"""Tests for the database runtime and V2 schema bootstrap behavior."""
import pytest
from sqlalchemy import inspect
@@ -26,9 +26,12 @@ async def test_create_all_creates_expected_tables(tmp_path):
table_names = set(await conn.run_sync(lambda c: inspect(c).get_table_names()))
assert "document" in table_names
assert "person" in table_names
assert "document_person" in table_names
assert "job" in table_names
assert "source" in table_names
assert "revision" in table_names
assert "job_source" in table_names
assert "revision" not in table_names
finally:
await dispose_database_runtime()