Commit 5239245
committed
test(lowlevel): update outputSchema-no-structured-content test for new behavior
CI flagged that the existing test_content_only_with_output_schema_error
asserted the old contract (replace tool output with a generic
'outputSchema validation' message). This PR's whole point is to NOT
do that, so the assertion was guaranteed to flip.
Renames the test to test_content_only_with_output_schema_surfaces_error
and updates assertions to verify the new contract:
- isError = True (so callers can branch on it)
- the tool's original unstructured TextContent payload is preserved
verbatim (so callers see the tool's own error message, e.g.
'Resource not found', instead of a generic SDK validation string)
- structuredContent stays None
Verified locally with `python -m pytest tests/server/test_lowlevel_output_validation.py` → 9 passed.
Signed-off-by: SAY-5 <say.apm35@gmail.com>1 parent 58889e6 commit 5239245
1 file changed
Lines changed: 18 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
217 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
218 | 225 | | |
219 | 226 | | |
220 | 227 | | |
| |||
234 | 241 | | |
235 | 242 | | |
236 | 243 | | |
237 | | - | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
238 | 248 | | |
239 | 249 | | |
240 | 250 | | |
241 | 251 | | |
242 | 252 | | |
243 | 253 | | |
244 | 254 | | |
245 | | - | |
| 255 | + | |
| 256 | + | |
246 | 257 | | |
247 | 258 | | |
248 | 259 | | |
249 | 260 | | |
250 | 261 | | |
251 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
252 | 265 | | |
253 | 266 | | |
254 | 267 | | |
| |||
0 commit comments