generated from john/python-template
This commit is contained in:
@@ -141,7 +141,7 @@ class TestJobModel:
|
||||
assert job.date_created is not None
|
||||
assert job.date_updated is not None
|
||||
|
||||
def test_transitions_to_completed(self, session):
|
||||
def test_transitions_to_transcribed(self, session):
|
||||
document = _persist_document(session)
|
||||
job = _persist_job(session, document)
|
||||
|
||||
@@ -150,12 +150,12 @@ class TestJobModel:
|
||||
session.commit()
|
||||
session.refresh(job)
|
||||
|
||||
job.status = JobStatus.COMPLETED
|
||||
job.status = JobStatus.TRANSCRIBED
|
||||
session.add(job)
|
||||
session.commit()
|
||||
session.refresh(job)
|
||||
|
||||
assert job.status == JobStatus.COMPLETED
|
||||
assert job.status == JobStatus.TRANSCRIBED
|
||||
|
||||
|
||||
class TestSourceModel:
|
||||
|
||||
Reference in New Issue
Block a user