Commit 87b2285
test: assert OPTIONS-preflight test matches at least one route
Greptile flagged a vacuous-pass risk: the loop only asserts inside the
match branch, so if no route matched the scope the test would pass even
on a broken FastAPI version. Count matches and assert matched > 0.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 4e17d1d commit 87b2285
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| 56 | + | |
55 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
0 commit comments