generated from john/python-template
V4.1 Mostly UI adjustments by GC
This commit is contained in:
@@ -2,11 +2,11 @@
|
||||
|
||||
import pytest
|
||||
import pytest_asyncio
|
||||
from sqlmodel import select
|
||||
|
||||
from transcription.db import session_scope
|
||||
from transcription.db.models import Document, Job, JobSourceStatus, JobStatus
|
||||
|
||||
from transcription.db.models import Document
|
||||
from transcription.db.models import Job
|
||||
from transcription.db.models import JobStatus
|
||||
|
||||
# --- Helper Fixtures ---
|
||||
|
||||
@@ -99,6 +99,7 @@ class TestJobsPageRendering:
|
||||
assert "gpt-4o" in response.text
|
||||
assert "View Linked Document" in response.text
|
||||
assert "View Linked Sources" in response.text
|
||||
assert "updates automatically while the job is active" in response.text
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_job_cancel_page_renders_confirmation(
|
||||
@@ -164,4 +165,4 @@ class TestJobsPageRendering:
|
||||
assert response.status_code == 200
|
||||
assert "Delete Processing Job" in response.text
|
||||
assert "Delete job permanently" in response.text
|
||||
assert "Delete is blocked" not in response.text
|
||||
assert "Delete is blocked" not in response.text
|
||||
|
||||
Reference in New Issue
Block a user