Home / Function/ test_xml_output_parser_fail() — langchain Function Reference

test_xml_output_parser_fail() — langchain Function Reference

Architecture documentation for the test_xml_output_parser_fail() function in test_xml_parser.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  707dc802_6999_e638_a579_81575814a58c["test_xml_output_parser_fail()"]
  a1505d99_fe37_04cb_8c81_2640a51076f6["test_xml_parser.py"]
  707dc802_6999_e638_a579_81575814a58c -->|defined in| a1505d99_fe37_04cb_8c81_2640a51076f6
  style 707dc802_6999_e638_a579_81575814a58c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/output_parsers/test_xml_parser.py lines 126–132

def test_xml_output_parser_fail(result: str) -> None:
    """Test XMLOutputParser where complete output is not in XML format."""
    xml_parser = XMLOutputParser(parser="xml")

    with pytest.raises(OutputParserException) as e:
        xml_parser.parse(result)
    assert "Failed to parse" in str(e)

Subdomains

Frequently Asked Questions

What does test_xml_output_parser_fail() do?
test_xml_output_parser_fail() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/output_parsers/test_xml_parser.py.
Where is test_xml_output_parser_fail() defined?
test_xml_output_parser_fail() is defined in libs/core/tests/unit_tests/output_parsers/test_xml_parser.py at line 126.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free