generated from john/python-template
V4.5 Complete - Enhanced trancription context, added option to restranscribe source under different models.
This commit is contained in:
@@ -172,11 +172,23 @@ async def test_v42_upgrade_adds_evidence_tables_without_rewriting_legacy_snapsho
|
||||
await upgrade_schema(engine=runtime.engine)
|
||||
async with runtime.engine.connect() as connection:
|
||||
table_names = set(await connection.run_sync(lambda c: inspect(c).get_table_names()))
|
||||
job_columns = set(
|
||||
await connection.run_sync(
|
||||
lambda c: tuple(column["name"] for column in inspect(c).get_columns("job"))
|
||||
)
|
||||
)
|
||||
source_columns = set(
|
||||
await connection.run_sync(
|
||||
lambda c: tuple(column["name"] for column in inspect(c).get_columns("source"))
|
||||
)
|
||||
)
|
||||
legacy_snapshot = (
|
||||
await connection.execute(text("SELECT raw_api_response FROM job_source WHERE id = 'link-1'"))
|
||||
).scalar_one()
|
||||
|
||||
assert {"execution_attempt", "processing_artifact"}.issubset(table_names)
|
||||
assert "purpose" in job_columns
|
||||
assert "preferred_execution_attempt_id" in source_columns
|
||||
assert "legacy" in legacy_snapshot
|
||||
finally:
|
||||
await dispose_database_runtime()
|
||||
|
||||
Reference in New Issue
Block a user