strat-gameplay-webapp/backend/tests/unit
Cal Corum c705e87ee2 CLAUDE: Fix test_resolve_play_success unit test
Fixed failing test caught by pre-commit hook. The test was not properly
mocking dependencies in the resolve_play command.

Changes:
- Added mock for state_manager.get_state() to return valid state
- Added mock for random.choice() to return deterministic PlayOutcome
- Updated assertion to expect auto-generated outcome (SINGLE_1)
- Test now properly validates the auto-outcome behavior for terminal testing

Root cause: resolve_play() checks state_manager early and auto-generates
a random outcome for testing when no forced outcome is provided. Test was
not accounting for either behavior.

All 731 unit tests now passing (100%).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-10 15:50:13 -06:00
..
api CLAUDE: Add critical test coverage for Phase 1 2025-11-05 12:21:35 -06:00
config CLAUDE: Fix all unit test failures and implement 100% test requirement 2025-11-04 19:35:21 -06:00
core CLAUDE: Phase 3F - Substitution System Testing Complete 2025-11-06 15:25:53 -06:00
models CLAUDE: Phase 3E-Prep - Refactor GameState to use full LineupPlayerState objects 2025-11-03 14:11:40 -06:00
services CLAUDE: Phase 3F - Substitution System Testing Complete 2025-11-06 15:25:53 -06:00
terminal_client CLAUDE: Fix test_resolve_play_success unit test 2025-11-10 15:50:13 -06:00
utils CLAUDE: Add critical test coverage for Phase 1 2025-11-05 12:21:35 -06:00
websocket CLAUDE: Fix all unit test failures and implement 100% test requirement 2025-11-04 19:35:21 -06:00
__init__.py CLAUDE: Complete Week 4 - State Management & Persistence 2025-10-22 12:01:03 -05:00