mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #785] [CLOSED] serve tests: test_json_schema_text_format's schema failure only where jsonschema is installed #2826
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2826
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/785
Author: @sergqwer
Created: 10/4/2026
Status: ❌ Closed
Base:
main← Head:pr/responses-schema-test📝 Commits (1)
c1d63ccserve tests: test_json_schema_text_format's schema failure only where jsonschema is installed📊 Changes
1 file changed (+6 additions, -1 deletions)
View changed files
📝
serve/test_responses.py(+6 -1)📄 Description
serve.test_responses.OverHttp.test_json_schema_text_formatfails on every install withoutjsonschema, including a clean v0.1.39:jsonschemais optional (serve/structured.py). Without it, ajson_schemaanswer is only checked to be one JSON object. The test's "bad" case answers{"n": 3}against a schema that wantsnas a string. That answer is a JSON object, so it passes with a 200 where the test expects the 502.The test now checks the schema failure only when
jsonschemaimports, which is howtest_structured.pyalready treats it (HAVE_JSONSCHEMA). Everything before that part of the test still runs either way.Checked on Windows 11 with the server's venv, which has no
jsonschema:serve.test_responseswas 1 error before and is OK now.🤖 Generated with Claude Code
https://claude.ai/code/session_01VZy1yKaDDiA8a7svdwaHio
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.