generated from john/python-template
V4.7 Phase 2: Evidence Model Simplification (part 2)
This commit is contained in:
@@ -7,9 +7,11 @@ import pytest
|
||||
from sqlmodel import select
|
||||
|
||||
from transcription.db import session_scope
|
||||
from transcription.db.loading import orm_attribute
|
||||
from transcription.db.loading import selectinload
|
||||
from transcription.db.models import Document
|
||||
from transcription.db.models import Job
|
||||
from transcription.db.models import JobSource
|
||||
from transcription.db.models import JobSourceStatus
|
||||
from transcription.db.models import JobStatus
|
||||
from transcription.db.models import Source
|
||||
@@ -56,7 +58,7 @@ class TestSourceModelProperties:
|
||||
select(Source)
|
||||
.options(
|
||||
selectinload(Source.document),
|
||||
selectinload(Source.job_sources),
|
||||
selectinload(Source.job_sources).selectinload(orm_attribute(JobSource.execution_attempts)),
|
||||
)
|
||||
.where(Source.document_id == job.document_id)
|
||||
)
|
||||
@@ -218,8 +220,8 @@ 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 "Normalized Metadata" in response.text
|
||||
assert "OpenRouter SDK Response Snapshot" in response.text
|
||||
assert "finish_reason" in response.text
|
||||
assert "response-123" in response.text
|
||||
|
||||
|
||||
Reference in New Issue
Block a user