test_exceptions_raised_while_parsing() — langchain Function Reference
Architecture documentation for the test_exceptions_raised_while_parsing() function in test_openai_functions.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 4be4db27_dfde_fa5f_1817_1e4b9cf9aec3["test_exceptions_raised_while_parsing()"] 051794f3_743e_b482_fc72_029694e0fa16["test_openai_functions.py"] 4be4db27_dfde_fa5f_1817_1e4b9cf9aec3 -->|defined in| 051794f3_743e_b482_fc72_029694e0fa16 style 4be4db27_dfde_fa5f_1817_1e4b9cf9aec3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/output_parsers/test_openai_functions.py lines 134–139
def test_exceptions_raised_while_parsing(bad_message: BaseMessage) -> None:
"""Test exceptions raised correctly while using JSON parser."""
chat_generation = ChatGeneration(message=bad_message)
with pytest.raises(OutputParserException):
JsonOutputFunctionsParser().parse_result([chat_generation])
Domain
Subdomains
Source
Frequently Asked Questions
What does test_exceptions_raised_while_parsing() do?
test_exceptions_raised_while_parsing() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/output_parsers/test_openai_functions.py.
Where is test_exceptions_raised_while_parsing() defined?
test_exceptions_raised_while_parsing() is defined in libs/core/tests/unit_tests/output_parsers/test_openai_functions.py at line 134.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free