From b980367b8c6b0a0e4aabfea213367966ee44ba62 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Wed, 8 Apr 2026 03:02:20 -0500 Subject: [PATCH] fix: update test limit to respect MAX_LIMIT=500 (#110) Closes #110 The test was sending limit=999 which exceeds MAX_LIMIT (500), causing FastAPI to return 422. Changed to limit=500, which is sufficient to cover all seasons for any player. Co-Authored-By: Claude Sonnet 4.6 --- tests/integration/test_stratplay_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/test_stratplay_routes.py b/tests/integration/test_stratplay_routes.py index 9a0dfea..20a4831 100644 --- a/tests/integration/test_stratplay_routes.py +++ b/tests/integration/test_stratplay_routes.py @@ -569,7 +569,7 @@ class TestGroupBySbaPlayer: # Get per-season rows r_seasons = requests.get( f"{api}/api/v3/plays/batting", - params={"group_by": "player", "sbaplayer_id": 1, "limit": 999}, + params={"group_by": "player", "sbaplayer_id": 1, "limit": 500}, timeout=15, ) assert r_seasons.status_code == 200