V4.1 revisions in preparation for v4.2. AI data capture now better defined.

This commit is contained in:
Jim Lancaster
2026-08-12 18:51:48 -05:00
parent 89cf69f8a2
commit 171132919d
15 changed files with 944 additions and 11 deletions
+6
View File
@@ -192,6 +192,8 @@ class TestSourcesPageRendering:
transcription_text="original transcription text",
revision_text="human revision text",
source_file=fixture_path,
ai_metadata={"finish_reason": "stop", "confidence": 0.98},
raw_api_response={"id": "response-123", "model": "test-model"},
)
async with session_scope() as session:
@@ -216,6 +218,10 @@ class TestSourcesPageRendering:
assert "Save revision" in response.text
assert "Previous Page" in response.text
assert "Next Page" in response.text
assert "AI Metadata" in response.text
assert "Raw API Response" in response.text
assert "finish_reason" in response.text
assert "response-123" in response.text
@pytest.mark.asyncio
async def test_source_delete_page_blocks_when_source_is_job_linked(