Home / Function/ test_repeated_memory_var() — langchain Function Reference

test_repeated_memory_var() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  eec646a3_afec_4cf7_14df_8dd00a23354d["test_repeated_memory_var()"]
  28e8333d_97e4_bc1a_7136_6d07eb21bbdf["test_combined_memory.py"]
  eec646a3_afec_4cf7_14df_8dd00a23354d -->|defined in| 28e8333d_97e4_bc1a_7136_6d07eb21bbdf
  style eec646a3_afec_4cf7_14df_8dd00a23354d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/memory/test_combined_memory.py lines 35–44

def test_repeated_memory_var(example_memory: list[ConversationBufferMemory]) -> None:
    """Test raising error when repeated memory variables found."""
    with pytest.raises(
        ValueError,
        match=re.escape(
            "Value error, The same variables {'bar'} are found in "
            "multiplememory object, which is not allowed by CombinedMemory."
        ),
    ):
        CombinedMemory(memories=[example_memory[1], example_memory[2]])

Domain

Subdomains

Frequently Asked Questions

What does test_repeated_memory_var() do?
test_repeated_memory_var() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/memory/test_combined_memory.py.
Where is test_repeated_memory_var() defined?
test_repeated_memory_var() is defined in libs/langchain/tests/unit_tests/memory/test_combined_memory.py at line 35.

Analyze Your Own Codebase

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

Try Supermodel Free