Test SessionNoteTool persistence functionality
(temp_workspace)
| 124 | |
| 125 | @pytest.mark.asyncio |
| 126 | async 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 | |
| 144 | def test_message_statistics(mock_llm_client, temp_workspace): |
nothing calls this directly
no test coverage detected