generated from john/python-template
V2 implementation step 1
This commit is contained in:
+5
-2
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user