generated from john/python-template
@@ -1,5 +1,6 @@
|
||||
"""Tests for the sources page routes and Source model properties."""
|
||||
|
||||
import re
|
||||
from datetime import UTC
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
@@ -198,6 +199,15 @@ class TestSourcesPageRendering:
|
||||
assert "page_one.png" in response.text
|
||||
assert "Source Document" in response.text
|
||||
assert "Stored Filename" not in response.text
|
||||
assert re.search(
|
||||
r'"name":"upload_name","label":"Upload Title".*'
|
||||
r'"name":"page_number","label":"Page Number".*'
|
||||
r'"name":"document_name","label":"Document Name".*'
|
||||
r'"name":"job_source_status","label":"Status".*'
|
||||
r'"name":"job_source_error_detail","label":"Error Detail"',
|
||||
response.text,
|
||||
re.DOTALL,
|
||||
)
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_sources_page_filters_to_document_context(self, app_client):
|
||||
|
||||
Reference in New Issue
Block a user