mirror of
https://github.com/hwchase17/langchain.git
synced 2026-01-25 22:49:59 +00:00
12 lines
295 B
Python
12 lines
295 B
Python
from langchain.memory.simple import SimpleMemory
|
|
|
|
|
|
def test_simple_memory() -> None:
|
|
"""Test SimpleMemory."""
|
|
memory = SimpleMemory(memories={"baz": "foo"})
|
|
|
|
output = memory.load_memory_variables({})
|
|
|
|
assert output == {"baz": "foo"}
|
|
assert ["baz"] == memory.memory_variables
|