generated from john/python-template
V6.1 UI refinements, add Maintenance jobs to Settings
Quality Gate / gate (push) Failing after 2m57s
Quality Gate / gate (push) Failing after 2m57s
This commit is contained in:
@@ -165,12 +165,10 @@ class TestSourcesPageRendering:
|
||||
def test_sources_page_renders_empty_state(self, app_client):
|
||||
_, client = app_client
|
||||
|
||||
response = client.get("/ui/sources")
|
||||
response = client.get("/ui/sources", follow_redirects=False)
|
||||
|
||||
assert response.status_code == 200
|
||||
assert "Source Asset Records" in response.text
|
||||
assert "No source asset records found in repository." in response.text
|
||||
assert "Upload New Documents" not in response.text
|
||||
assert response.status_code == 307
|
||||
assert response.headers["location"] == "/ui/documents"
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_sources_page_lists_seeded_sources(self, app_client):
|
||||
@@ -192,10 +190,12 @@ class TestSourcesPageRendering:
|
||||
)
|
||||
)
|
||||
await session.commit()
|
||||
document_id = str(document.id)
|
||||
|
||||
response = client.get("/ui/sources")
|
||||
response = client.get(f"/ui/sources?document_id={document_id}")
|
||||
|
||||
assert response.status_code == 200
|
||||
assert "Sources for Document" in response.text
|
||||
assert "page_one.png" in response.text
|
||||
assert "Source Document" in response.text
|
||||
assert "Stored Filename" not in response.text
|
||||
|
||||
Reference in New Issue
Block a user