MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / test_save_and_load_memory

Method test_save_and_load_memory

tests/test_episodic.py:39–49  ·  view source on GitHub ↗

Test saving and loading memory data

(self, temp_memory_file)

Source from the content-addressed store, hash-verified

37
38 @pytest.mark.asyncio
39 async def test_save_and_load_memory(self, temp_memory_file):
40 """Test saving and loading memory data"""
41 test_data = {
42 "key1": {"content": "test content", "tags": ["tag1"], "timestamp": 123.456}
43 }
44
45 success = await _save_memory(test_data, temp_memory_file)
46 assert success is True
47
48 loaded_data = await _load_memory(temp_memory_file)
49 assert loaded_data == test_data
50
51 @pytest.mark.asyncio
52 async def test_store_action(self, temp_memory_file):

Callers

nothing calls this directly

Calls 2

_save_memoryFunction · 0.90
_load_memoryFunction · 0.90

Tested by

no test coverage detected