From 8d15c314b0bd0f5f437ccc049d11dc1ac2021c6f Mon Sep 17 00:00:00 2001 From: Emi Griffith Date: Wed, 22 Jul 2026 11:42:22 -0700 Subject: [PATCH] Fix test split introduced by previous commit's insertion point Claude-Session: https://claude.ai/code/session_01RdARHDJaYC1wSQRTYM6t3Z --- tests/web/test_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/web/test_api.py b/tests/web/test_api.py index 762a33c..9ac1e6b 100644 --- a/tests/web/test_api.py +++ b/tests/web/test_api.py @@ -58,6 +58,8 @@ def test_grade_is_aliased_across_api_versions(client): def test_query_validation_rejects_out_of_range(client): assert client.get("/thermograph/api/v2/grade", params={"lat": 999, "lon": 0}).status_code == 422 + assert client.get("/thermograph/api/v2/grade", + params={**Q, "days": 0}).status_code == 422 def test_api_version_reports_backend_contract(client): @@ -66,8 +68,6 @@ def test_api_version_reports_backend_contract(client): body = r.json() assert {"backend_version", "min_frontend", "payload_ver"} <= body.keys() assert body["backend_version"] == "2" - assert client.get("/thermograph/api/v2/grade", - params={**Q, "days": 0}).status_code == 422 def test_day_detail_and_ladders(client, history):