Commit a432be8
Harden POST-route test to assert CQL2 envelope shape
Replace `assert req.body is not None` (which passes for empty bytes,
malformed JSON, or any truthy value) with structural checks on the
parsed CQL2 body: top-level AND, the single IN predicate, the value
list in order. Also asserts the Content-Type header. Future
regressions in `_cql2_param` or routing fail loudly with a clear
message instead of slipping through.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 999eebe commit a432be8
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
134 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
135 | 147 | | |
136 | 148 | | |
137 | 149 | | |
| |||
0 commit comments