paper-dynasty-discord/tests
Cal Corum 56007aaeec
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m54s
perf: parallelize roll_for_cards DB calls and increase pack limit to 20 (#97)
Restructure roll_for_cards into three phases: dice rolling (CPU-only),
batched player fetches (one per rarity tier via asyncio.gather), and
gathered writes (cards + pack patches concurrent). Reduces 20-30
sequential API calls to ~6 gathered calls for 5 packs.

Also fixes leaked `x` variable bug in dupe branch, removes dead
`all_players` accumulation, and bumps open-packs limit from 5 to 20.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 08:17:08 -05:00
..
command_logic fix: preserve batter at plate when half-inning ends on caught stealing 2026-02-10 22:37:42 -06:00
gameplay_models Catchup commit 2025-07-22 09:22:19 -05:00
in_game Cogs to Packages Groundwork 2025-08-17 08:46:55 -05:00
other Added AbRoll and JumpRoll 2024-11-17 14:57:54 -06:00
players_refactor fix: invoke actual cog callback in test_error_handling_and_logging (#39) 2026-03-09 13:22:58 +00:00
scouting fix: add missing week field to scout reward POST 2026-03-09 10:20:23 -05:00
conftest.py Catchup commit 2025-07-22 09:22:19 -05:00
factory.py Catchup files 2025-11-11 13:22:06 -06:00
test_api_calls.py Add API timeout/retry logic and fix get_team_by_owner for PostgreSQL 2026-01-31 15:52:14 -06:00
test_play_locking.py fix: add locked_play context manager to prevent stuck play locks 2026-02-10 21:54:44 -06:00
test_roll_for_cards.py perf: parallelize roll_for_cards DB calls and increase pack limit to 20 (#97) 2026-03-20 08:17:08 -05:00