generated from john/python-template
V4.4 Complete
This commit is contained in:
@@ -15,7 +15,7 @@ from transcription.db.models import JobStatus
|
||||
async def seed_document_with_unlinked_job():
|
||||
"""Seed a document and a queued job for testing route actions."""
|
||||
async with session_scope() as session:
|
||||
document = Document(name="Test Archival Letter", document_type="letter")
|
||||
document = Document(name="Test Archival Letter")
|
||||
session.add(document)
|
||||
await session.flush()
|
||||
|
||||
@@ -72,7 +72,7 @@ class TestJobsPageRendering:
|
||||
_, client = app_client
|
||||
|
||||
async with session_scope() as session:
|
||||
doc = Document(name="Preselected Journal Entry", document_type="journal")
|
||||
doc = Document(name="Preselected Journal Entry")
|
||||
session.add(doc)
|
||||
await session.commit()
|
||||
doc_id = str(doc.id)
|
||||
@@ -133,7 +133,7 @@ class TestJobsPageRendering:
|
||||
_, client = app_client
|
||||
|
||||
async with session_scope() as session:
|
||||
doc = Document(name="Processing Doc", document_type="letter")
|
||||
doc = Document(name="Processing Doc")
|
||||
session.add(doc)
|
||||
await session.flush()
|
||||
job = Job(document_id=doc.id, status=JobStatus.PROCESSING)
|
||||
|
||||
Reference in New Issue
Block a user