Test saving and loading memory data
(self, temp_memory_file)
| 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): |
nothing calls this directly
no test coverage detected