Commit add5575
Test the chat mount behaviourally too
Third CI failure on the same test, which was the signal that the whole approach was
wrong: it kept asserting against app.routes, whose contents differ by FastAPI/Strawberry
version, and pytest truncates long set reprs with "..." so the failure output was
actively misleading about what the set contained.
Replaced the last route-table assertion with a request: POST /api/chat/sessions with an
empty body must not 404. A 404 would mean the router is gone; validation rejecting the
body proves the route exists, without needing a provider or a real session.
Verified with apps/api/.env moved aside and all provider keys unset: 142 passed,
ruff clean.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 909e7a7 commit add5575
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
| |||
0 commit comments