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 <noreply@anthropic.com>
This commit is contained in:
Cal Corum 2026-04-08 03:02:20 -05:00 committed by cal
parent 5d5df325bc
commit 36b962e5d5

View File

@ -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