MCPcopy Index your code
hub / github.com/MiniMax-AI/Mini-Agent / test_session_note_persistence

Function test_session_note_persistence

tests/test_session_integration.py:126–141  ·  view source on GitHub ↗

Test SessionNoteTool persistence functionality

(temp_workspace)

Source from the content-addressed store, hash-verified

124
125@pytest.mark.asyncio
126async def test_session_note_persistence(temp_workspace):
127 """Test SessionNoteTool persistence functionality"""
128 memory_file = Path(temp_workspace) / "memory.json"
129
130 # Create first tool instance and record note
131 record_tool = SessionNoteTool(memory_file=str(memory_file))
132 result1 = await record_tool.execute(content="Test note", category="test")
133 assert result1.success
134
135 # Create second tool instance (simulating new session)
136 recall_tool = RecallNoteTool(memory_file=str(memory_file))
137
138 # Verify ability to read previous notes
139 result2 = await recall_tool.execute()
140 assert result2.success
141 assert "Test note" in result2.content
142
143
144def test_message_statistics(mock_llm_client, temp_workspace):

Callers

nothing calls this directly

Calls 4

executeMethod · 0.95
executeMethod · 0.95
SessionNoteToolClass · 0.90
RecallNoteToolClass · 0.90

Tested by

no test coverage detected