generated from john/python-template
1.4 KiB
1.4 KiB
Step 6 implemented ✅
Files added
tests/integration/test_pipeline_flow.pytests/test_traceability.py
What was implemented
1) End-to-end pipeline integration coverage
tests/integration/test_pipeline_flow.py now verifies:
-
Success path
- upload creates queued job
- worker processes job
- job becomes
transcribed - transcript text is persisted
- error detail remains
None
-
Failure path
- upload creates queued job
- worker processing failure is handled
- job becomes
failed - transcript has
text=None error_detailcontains provider failure reason
2) MVP requirement traceability check
tests/test_traceability.py adds a concrete map:
- REQ-0, REQ-1, REQ-2, REQ-3, REQ-4, REQ-5, REQ-6, REQ-8, REQ-12
- each REQ maps to one or more existing test files
- test asserts each mapped path exists (guards against drift)
Validation run results
Executed and passed:
uv run pytest --collect-only -q✅uv run pytest -m unit -q✅uv run pytest -m integration -q✅uv run pytest -m "not external" -q✅uv run pytest tests/integration/test_pipeline_flow.py -q✅uv run pytest tests/ui/test_upload_page.py -q✅uv run pytest tests/ui/test_jobs_page.py -q✅uv run pytest -q✅
All green.
(Only existing non-blocking FastAPI TestClient deprecation warning remains.)