generated from john/python-template
This commit is contained in:
@@ -152,7 +152,7 @@ async def test_document_print_projection_uses_semantic_author_and_current_text(d
|
||||
await jobs.create_job(
|
||||
Job(
|
||||
document_id=document.id,
|
||||
status=JobStatus.COMPLETED,
|
||||
status=JobStatus.TRANSCRIBED,
|
||||
provider="openrouter",
|
||||
model="model-a",
|
||||
prompt_name="transcribe_document.md",
|
||||
@@ -167,4 +167,4 @@ async def test_document_print_projection_uses_semantic_author_and_current_text(d
|
||||
assert [source.page_number for source in projection.sources] == [1, 2]
|
||||
assert [source.current_text for source in projection.sources] == ["raw first", "revised second"]
|
||||
assert [source.media_type for source in projection.sources] == ["image/png", "image/png"]
|
||||
assert projection.jobs[0].status == "completed"
|
||||
assert projection.jobs[0].status == "transcribed"
|
||||
|
||||
@@ -95,12 +95,15 @@ class TestWorkflowReliability:
|
||||
|
||||
async with services.jobs._session_scope() as session:
|
||||
attempts = (
|
||||
await session.execute(
|
||||
select(ExecutionAttempt).where(
|
||||
col(ExecutionAttempt.job_source_id).in_([js.id for js in result.job_sources])
|
||||
(
|
||||
await session.exec(
|
||||
select(ExecutionAttempt).where(
|
||||
col(ExecutionAttempt.job_source_id).in_([js.id for js in result.job_sources])
|
||||
)
|
||||
)
|
||||
)
|
||||
).scalars().all()
|
||||
.all()
|
||||
)
|
||||
error_detail = next(attempt.error_detail for attempt in attempts if attempt.error_detail is not None)
|
||||
assert "timed out" in error_detail.lower()
|
||||
assert "20.0s" in error_detail
|
||||
|
||||
Reference in New Issue
Block a user