generated from john/python-template
@@ -115,6 +115,8 @@ class TestDocumentModel:
|
||||
assert isinstance(document.id, UUID)
|
||||
assert document.created_at is not None
|
||||
assert document.updated_at is not None
|
||||
assert document.created_at.tzinfo is None
|
||||
assert document.updated_at.tzinfo is None
|
||||
|
||||
def test_can_reference_document_type_registry(self, session):
|
||||
document_type = _persist_document_type(session, label="Record")
|
||||
@@ -140,6 +142,8 @@ class TestJobModel:
|
||||
assert job.retry_count == 0
|
||||
assert job.date_created is not None
|
||||
assert job.date_updated is not None
|
||||
assert job.date_created.tzinfo is None
|
||||
assert job.date_updated.tzinfo is None
|
||||
|
||||
def test_transitions_to_transcribed(self, session):
|
||||
document = _persist_document(session)
|
||||
@@ -183,6 +187,7 @@ class TestSourceModel:
|
||||
assert fetched.document_id == document.id
|
||||
assert fetched.page_number == 1
|
||||
assert fetched.date_uploaded is not None
|
||||
assert fetched.date_uploaded.tzinfo is None
|
||||
|
||||
def test_revised_text_is_supported(self, session):
|
||||
document = _persist_document(session)
|
||||
|
||||
Reference in New Issue
Block a user