From 7c14b33799a0d0c22a5af1a26177a3c4637c5172 Mon Sep 17 00:00:00 2001 From: cs_carl Date: Tue, 23 Jun 2026 12:50:40 +0000 Subject: [PATCH] fix(tests): use date.today() for seed ANCHOR_DATE to stay within 90-day trend window Hardcoded date(2026, 3, 15) fell outside the 90-day lookback on 2026-06-23, causing test_public_trend_returns_data to see 0 data_points instead of >=2. --- tests/test_e2e/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_e2e/conftest.py b/tests/test_e2e/conftest.py index 735f24d..ece269f 100644 --- a/tests/test_e2e/conftest.py +++ b/tests/test_e2e/conftest.py @@ -26,8 +26,8 @@ from cartsnitch_api.models import ( # Shared test constants ZERO_UUID = "00000000-0000-0000-0000-000000000000" BAD_UUID = "not-a-uuid" -# Fixed anchor date for deterministic tests -ANCHOR_DATE = date(2026, 3, 15) +# Anchor relative to today so price history seed data stays within the 90-day trend window. +ANCHOR_DATE = date.today() @pytest.fixture