strat-gameplay-webapp/backend/tests/unit/terminal_client
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
..
__init__.py CLAUDE: Refactor game models and modularize terminal client 2025-10-28 14:16:38 -05:00
test_arg_parser.py CLAUDE: Refactor game models and modularize terminal client 2025-10-28 14:16:38 -05:00
test_commands.py CLAUDE: Fix test_resolve_play_success unit test 2025-11-10 15:50:13 -06:00
test_completions.py CLAUDE: Refactor game models and modularize terminal client 2025-10-28 14:16:38 -05:00
test_help_text.py CLAUDE: Refactor game models and modularize terminal client 2025-10-28 14:16:38 -05:00