test_schema_parsing_failures() — langchain Function Reference
Architecture documentation for the test_schema_parsing_failures() function in test_base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD ed2d22c2_676b_7af9_0802_3dd202861787["test_schema_parsing_failures()"] bd382a4e_442c_13ae_530c_6e34bc43623d["test_base.py"] ed2d22c2_676b_7af9_0802_3dd202861787 -->|defined in| bd382a4e_442c_13ae_530c_6e34bc43623d style ed2d22c2_676b_7af9_0802_3dd202861787 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/openai/tests/integration_tests/chat_models/test_base.py lines 1232–1239
def test_schema_parsing_failures() -> None:
llm = ChatOpenAI(model="gpt-5-nano", use_responses_api=False)
try:
llm.invoke("respond with good", response_format=BadModel)
except Exception as e:
assert e.response is not None # type: ignore[attr-defined]
else:
raise AssertionError
Domain
Subdomains
Source
Frequently Asked Questions
What does test_schema_parsing_failures() do?
test_schema_parsing_failures() is a function in the langchain codebase, defined in libs/partners/openai/tests/integration_tests/chat_models/test_base.py.
Where is test_schema_parsing_failures() defined?
test_schema_parsing_failures() is defined in libs/partners/openai/tests/integration_tests/chat_models/test_base.py at line 1232.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free