oliver-sales-ops-platform/backend/tests
DJP 96b8e2dc3d Stage 15 stub: pitch deck markdown export
Phase 1 stub for the proposal deck. Pulls every upstream artifact
together into a 5-section markdown doc:

  1. The opportunity at a glance — intake summary + brands + delivery model
  2. What's being asked for — channels, markets, capabilities, deliverables, ambiguities
  3. Why we're a fit — qualification % + recommendation + delivery model + per-stage split
  4. Commercial framing — caveats, assumptions, KPIs, capability gaps
  5. AI cost so far — running total + call count

GET /opportunities/{id}/pitch-deck/markdown returns the .md file with the
right Content-Disposition. Saves a stage_artifact (type='pitch_deck_markdown').

Phase 2 will swap this for a python-pptx deck assembled from a template
library (the per-section content stays the same — just the rendering
changes).

Smoke-tested: 6.5KB doc on the Versuni opportunity, all 5 sections
populated from real artifacts.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-27 14:24:30 -04:00
..
__init__.py Add pytest integration test harness for backend 2026-04-27 13:22:32 -04:00
conftest.py Add pytest integration test harness for backend 2026-04-27 13:22:32 -04:00
pytest.ini Add pytest integration test harness for backend 2026-04-27 13:22:32 -04:00
test_agents_stages_9_12_13.py Stage 15 stub: pitch deck markdown export 2026-04-27 14:24:30 -04:00
test_approvals.py Tests: approval workflow + notifications (13 new, 46 total) 2026-04-27 13:32:25 -04:00
test_assets.py Stage 11: Team Shape (FTE) + 27 new tests for Stages 6/7/8 2026-04-27 14:10:48 -04:00
test_diagnosis.py Stage 3: TROWLS qualification scorecard + Stage 2 diagnosis tests 2026-04-27 13:48:44 -04:00
test_files.py Add pytest integration test harness for backend 2026-04-27 13:22:32 -04:00
test_intake_agent.py Add pytest integration test harness for backend 2026-04-27 13:22:32 -04:00
test_matching.py Stage 11: Team Shape (FTE) + 27 new tests for Stages 6/7/8 2026-04-27 14:10:48 -04:00
test_notifications.py Tests: approval workflow + notifications (13 new, 46 total) 2026-04-27 13:32:25 -04:00
test_opportunity_crud.py Add pytest integration test harness for backend 2026-04-27 13:22:32 -04:00
test_qa_pack.py Stages 6/7/8 backend + Stage 3/4 tests: V1 core ported 2026-04-27 14:03:13 -04:00
test_qualification.py Stages 6/7/8 backend + Stage 3/4 tests: V1 core ported 2026-04-27 14:03:13 -04:00
test_ratecard.py Stage 11: Team Shape (FTE) + 27 new tests for Stages 6/7/8 2026-04-27 14:10:48 -04:00
test_schema_sanity.py Add pytest integration test harness for backend 2026-04-27 13:22:32 -04:00
test_stage_gating.py Add pytest integration test harness for backend 2026-04-27 13:22:32 -04:00
test_stage_machine.py Add pytest integration test harness for backend 2026-04-27 13:22:32 -04:00
test_team_shape.py Stage 15 stub: pitch deck markdown export 2026-04-27 14:24:30 -04:00