Fix daily note path to match vault structure

Update from journal/YYYY/YYYY-MM-DD.md to
50 - Journal/YYYY/MM/YYYY-MM-DD.md to match the actual Obsidian vault
folder layout.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-31 00:08:40 -04:00
parent ad5b889bf1
commit 2cd77c68c1
3 changed files with 54 additions and 16 deletions
+4 -2
View File
@@ -93,13 +93,15 @@ class TestGetDailyNotePath:
def test_formats_path_correctly(self, service):
date = datetime(2026, 3, 15)
path = service.get_daily_note_path(date)
assert path == "journal/2026/2026-03-15.md"
assert path == "50 - Journal/2026/03/2026-03-15.md"
def test_defaults_to_today(self, service):
path = service.get_daily_note_path()
today = datetime.now()
assert today.strftime("%Y-%m-%d") in path
assert path.startswith(f"journal/{today.strftime('%Y')}/")
assert path.startswith(
f"50 - Journal/{today.strftime('%Y')}/{today.strftime('%m')}/"
)
class TestWalkVault: