generated from john/python-template
V4.1 revisions in preparation for v4.2. AI data capture now better defined.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user