Commit b903ac0
fix(tests): repair 3 CI failures from the export-entitlement gate (b82e772)
CI has been red since the export-gate batch; all 3 failures trace to
b82e772 and were missed when the test_backend_workspace.py fallout was
fixed:
- resume_builder_export_unknown_session / _400_real_message: the route
enforces the export entitlement BEFORE hydrating the session
(ADR-027 — a blocked request must have no side effects). docx /
classic_ats from an anon (free) caller now correctly returns the
canonical 429 entitlement response, so these scenarios never reached
the unknown-session 400 path they exist to verify. Switched the
payloads to the free-entitled combo (pdf + professional_neutral) so
the request clears the gate and hits the 400-with-friendly-message
path. Intent of the tests is preserved; behaviour under test is
unchanged.
- test_backend_http_exceptions_use_friendly_detail: the audit
allowlist pins the InvalidFeedbackError str(error) site in
backend/routers/workspace.py by line number; b82e772 added
auth/gate branches above it, drifting it 651 -> 686 (the comment
already documents this exact recurring drift: 617->629->639->650
->651). Bumped to 686 per the documented procedure.
Test-only changes; no production code touched. The 2 export
scenarios + the audit pass; surrounding slice green (16 passed).
Full suite couldn't be run to completion locally (network-bound
tests hang offline) but CI deterministically reported exactly these
3 failures / 653 passed, so this should land 656/0.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b992b9a commit b903ac0
2 files changed
Lines changed: 18 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
109 | 115 | | |
110 | 116 | | |
111 | 117 | | |
112 | 118 | | |
113 | | - | |
114 | | - | |
| 119 | + | |
| 120 | + | |
115 | 121 | | |
116 | 122 | | |
117 | 123 | | |
| |||
254 | 260 | | |
255 | 261 | | |
256 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
257 | 266 | | |
258 | 267 | | |
259 | 268 | | |
260 | 269 | | |
261 | | - | |
262 | | - | |
| 270 | + | |
| 271 | + | |
263 | 272 | | |
264 | 273 | | |
265 | 274 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
232 | 231 | | |
233 | 232 | | |
234 | 233 | | |
| |||
0 commit comments