From f6fd6c70677a805e8b83e54edf945f48c000d442 Mon Sep 17 00:00:00 2001 From: Adeel Ahmad Date: Sat, 17 Oct 2026 00:04:31 +0000 Subject: [PATCH] test(notes): keep the daily notes test from failing on 2026-10-17 The last check asked for 2026-10-17's note after the call without a date had made today's note, so on that day it found the note the deleted root had left behind. It now asks for a day no earlier call makes. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01HXPWXcSCQb9hWPr7xkZu7B --- fastapi_backend/tests/api/test_notebook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fastapi_backend/tests/api/test_notebook.py b/fastapi_backend/tests/api/test_notebook.py index 8f3d79e31..40e065d03 100644 --- a/fastapi_backend/tests/api/test_notebook.py +++ b/fastapi_backend/tests/api/test_notebook.py @@ -587,7 +587,7 @@ def test_daily_notes(client, env, db): # editors only, and a date that is one assert client.post("/api/v1/notes/today", headers=hv, json={"ns": "pods"}).status_code == 403 assert client.post("/api/v1/notes/today", headers=he, json={"ns": "pods", "date": "soon"}).status_code == 400 - # the daily notes' note, when deleted, is made again the next time + # the daily notes' note, when deleted, is made again the next time (for a day no earlier call made: not today) assert client.delete(f"/api/v1/notes/{root['id']}", headers=he).status_code == 200 - again = client.post("/api/v1/notes/today", headers=he, json={"ns": "pods", "date": "2026-10-17"}).json() + again = client.post("/api/v1/notes/today", headers=he, json={"ns": "pods", "date": "2020-02-29"}).json() assert again["parent"] not in (None, root["id"])