generated from john/python-template
@@ -36,6 +36,7 @@ async def seed_person_and_document():
|
||||
name="Letter from Hig",
|
||||
document_type_id=letter_type.id,
|
||||
archive_identifier="ZC-1924-001",
|
||||
document_date=date(1924, 7, 4),
|
||||
)
|
||||
session.add(doc)
|
||||
await session.flush()
|
||||
@@ -148,6 +149,8 @@ class TestDocumentsPageRendering:
|
||||
assert "Zenna Cochran" in response.text
|
||||
assert "Document Type:" in response.text
|
||||
assert "Letter" in response.text
|
||||
assert "07-04-1924" in response.text
|
||||
assert "1924-07-04" not in response.text
|
||||
assert "PIPELINE JOBS" in response.text.upper()
|
||||
assert "Edit Document" in response.text
|
||||
|
||||
@@ -183,6 +186,8 @@ class TestDocumentsPageRendering:
|
||||
assert response.status_code == 200
|
||||
assert "Edit Document Record" in response.text
|
||||
assert "Letter from Hig" in response.text
|
||||
assert "Document date" in response.text
|
||||
assert "Exact date (YYYY-MM-DD)" not in response.text
|
||||
assert "ZC-1924-001" in response.text
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
||||
Reference in New Issue
Block a user