Home / Function/ test_str() — langchain Function Reference

test_str() — langchain Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/core/tests/unit_tests/documents/test_str.py lines 4–9

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

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free