Home / Function/ test_repr() — langchain Function Reference

test_repr() — langchain Function Reference

Architecture documentation for the test_repr() function in test_str.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  4dace76c_a9c2_857a_ae86_b7acc2d57a5a["test_repr()"]
  61f57d05_0317_4da2_e717_501fcae7aa5a["test_str.py"]
  4dace76c_a9c2_857a_ae86_b7acc2d57a5a -->|defined in| 61f57d05_0317_4da2_e717_501fcae7aa5a
  style 4dace76c_a9c2_857a_ae86_b7acc2d57a5a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/documents/test_str.py lines 12–20

def test_repr() -> None:
    assert (
        repr(Document(page_content="Hello, World!"))
        == "Document(metadata={}, page_content='Hello, World!')"
    )
    assert (
        repr(Document(page_content="Hello, World!", metadata={"a": 3}))
        == "Document(metadata={'a': 3}, page_content='Hello, World!')"
    )

Domain

Subdomains

Frequently Asked Questions

What does test_repr() do?
test_repr() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/documents/test_str.py.
Where is test_repr() defined?
test_repr() is defined in libs/core/tests/unit_tests/documents/test_str.py at line 12.

Analyze Your Own Codebase

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

Try Supermodel Free