Test suite: pytest foundation + IVR webhook unit tests #10

Open
opened 2026-04-05 21:36:54 -07:00 by pyr0ball · 0 comments
Owner

No tests exist. Add a foundational pytest suite covering the most critical logic.

Deliverables

  • tests/ directory with pytest.ini or pyproject.toml pytest config
  • Unit tests for api/webhooks/twilio.py: TwiML response shape, DTMF sequence injection, bridge logic
  • Unit tests for api/transcription.py: mock Whisper, verify response schema
  • IVR sequence parser test: validate OSPREY_IVR_SEQUENCE format → TwiML output
  • Mock Twilio client fixture (avoid live API calls in tests)

Coverage target

>= 60% for Alpha, >= 80% for Beta

No tests exist. Add a foundational pytest suite covering the most critical logic. ## Deliverables - `tests/` directory with `pytest.ini` or `pyproject.toml` pytest config - Unit tests for `api/webhooks/twilio.py`: TwiML response shape, DTMF sequence injection, bridge logic - Unit tests for `api/transcription.py`: mock Whisper, verify response schema - IVR sequence parser test: validate `OSPREY_IVR_SEQUENCE` format → TwiML output - Mock Twilio client fixture (avoid live API calls in tests) ## Coverage target \>= 60% for Alpha, >= 80% for Beta
pyr0ball added this to the Alpha — Pipeline milestone 2026-04-05 21:36:54 -07:00
Sign in to join this conversation.
No labels
backlog
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Circuit-Forge/osprey#10
No description provided.