test_graph_mermaid_special_chars() — langchain Function Reference
Architecture documentation for the test_graph_mermaid_special_chars() function in test_graph.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 54975e26_869b_0797_b1b7_e85dd1718292["test_graph_mermaid_special_chars()"] 972d89eb_abd0_b940_67b4_eff75c775ace["test_graph.py"] 54975e26_869b_0797_b1b7_e85dd1718292 -->|defined in| 972d89eb_abd0_b940_67b4_eff75c775ace style 54975e26_869b_0797_b1b7_e85dd1718292 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/runnables/test_graph.py lines 701–719
def test_graph_mermaid_special_chars(snapshot: SnapshotAssertion) -> None:
graph = Graph(
nodes={
"__start__": Node(
id="__start__", name="__start__", data=BaseModel, metadata=None
),
"开始": Node(id="开始", name="开始", data=BaseModel, metadata=None),
"结束": Node(id="结束", name="结束", data=BaseModel, metadata=None),
"__end__": Node(
id="__end__", name="__end__", data=BaseModel, metadata=None
),
},
edges=[
Edge(source="__start__", target="开始", data=None, conditional=False),
Edge(source="开始", target="结束", data=None, conditional=False),
Edge(source="结束", target="__end__", data=None, conditional=False),
],
)
assert graph.draw_mermaid() == snapshot(name="mermaid")
Domain
Subdomains
Source
Frequently Asked Questions
What does test_graph_mermaid_special_chars() do?
test_graph_mermaid_special_chars() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_graph.py.
Where is test_graph_mermaid_special_chars() defined?
test_graph_mermaid_special_chars() is defined in libs/core/tests/unit_tests/runnables/test_graph.py at line 701.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free