test: Add integration test for issue #416 (read_note with underscored folders)#453
Conversation
…derscored folders) This test reproduces the bug where read_note fails to find notes when given permalinks from underscored folder names (e.g., _archive/, _drafts/). The test: 1. Creates a note in _archive/articles/ folder 2. Verifies the permalink is normalized (underscores stripped) 3. Attempts to read the note using its permalink 4. Expects this to succeed (will fail if bug exists) Co-authored-by: Paul Hernandez <phernandez@users.noreply.github.com> Signed-off-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
|
Claude finished @phernandez's task in 1m 45s —— View job PR Review: Integration Test for Issue #416I've completed my review of this PR against the Basic Memory team checklist. Overall, this is a well-crafted test that effectively reproduces the reported issue. Below are my findings: ✅ Strengths
📋 Team Checklist ReviewCode Quality & Standards ✅
Testing & Documentation ✅
Basic Memory Architecture ✅
Security & Performance ✅
Compatibility ✅
🔍 Code AnalysisTest Flow (test-int/mcp/test_read_note_integration.py:52-103)The test follows this logical sequence:
This perfectly mirrors the bug report scenario where:
Comparison with Similar TestThe new test follows the same pattern as 💡 Observations & RecommendationsWhat This Test RevealsBased on the issue history, this test is designed to verify whether the bug actually exists. As @groksrc noted in the issue comments, the database already stores both Two possible outcomes:
Minor Suggestions (Optional)While the test is excellent as-is, here are some optional enhancements for consideration:
However, these are not necessary for this PR - the current test is sufficient to reproduce and diagnose the reported issue. ✅ Final VerdictThis PR is ready to merge. The test is:
The test will provide valuable diagnostic information when run in CI, confirming whether issue #416 is a real bug or a misconception about how the system works. Tasks Completed
|
Summary
Adds an integration test to reproduce the bug reported in issue #416 where
read_notefails to find notes when given permalinks from underscored folder names.Changes
test_read_note_underscored_folder_by_permalinktotest-int/mcp/test_read_note_integration.pyTest Scenario
The test reproduces the exact scenario from the bug report:
_archive/articles/folderIf the bug exists, this test will fail. If it passes, it confirms that the database-based lookup is working correctly.
Related Issue
Fixes #416
Generated with Claude Code