|
All checks were successful
Ruff Lint / lint (pull_request) Successful in 27s
The previous two-step battingcards→pitchingcards fallback caused card
ID collisions — e.g. card 494 resolving to Cameron Maybin (batting)
instead of the intended pitcher Grayson Rodriguez. The unified cards
endpoint is keyed on globally-unique card instance IDs and carries
player, team, and variant in a single response.
- Single db_get("cards", object_id=card_id) lookup
- Card type derived from player.pos_1 (SP→sp, RP/CP→rp, else→batter)
- team_id sourced from card["team"]["id"] (no get_team_by_owner fallback)
- TestRefractorTestSetup rewritten for the single-endpoint contract
Spec: docs/superpowers/specs/2026-04-11-refractor-test-unified-cards-lookup-design.md
|
||
|---|---|---|
| .. | ||
| command_logic | ||
| gameplay_models | ||
| in_game | ||
| other | ||
| players_refactor | ||
| scouting | ||
| conftest.py | ||
| factory.py | ||
| refractor-integration-test-plan.md | ||
| refractor-preflight.sh | ||
| test_api_calls.py | ||
| test_card_embed_refractor.py | ||
| test_complete_game_hook.py | ||
| test_dev_tools.py | ||
| test_play_locking.py | ||
| test_player_refractor_view.py | ||
| test_post_game_refractor_hook.py | ||
| test_post_game_render.py | ||
| test_refractor_commands.py | ||
| test_refractor_notifs.py | ||
| test_refractor_progress_embed.py | ||
| test_refractor_test_data.py | ||