Home / Function/ test_parse_non_dict_json_output() — langchain Function Reference

test_parse_non_dict_json_output() — langchain Function Reference

Architecture documentation for the test_parse_non_dict_json_output() function in test_json.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  1c2b8699_4053_2ee6_cd20_aa5558b87c0d["test_parse_non_dict_json_output()"]
  8edb1db9_86b9_7cd9_158b_8b5423c9a6dd["test_json.py"]
  1c2b8699_4053_2ee6_cd20_aa5558b87c0d -->|defined in| 8edb1db9_86b9_7cd9_158b_8b5423c9a6dd
  style 1c2b8699_4053_2ee6_cd20_aa5558b87c0d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/output_parsers/test_json.py lines 217–222

def test_parse_non_dict_json_output() -> None:
    text = "```json\n1\n```"
    with pytest.raises(OutputParserException) as exc_info:
        parse_and_check_json_markdown(text, expected_keys=["foo"])

    assert "Expected JSON object (dict)" in str(exc_info.value)

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free