Adds two new test cases to test_play_locking.py to improve coverage: 1. test_lock_released_after_successful_completion - Verifies play.locked is set to False after complete_play() - Confirms play.complete is set to True - Validates database commit is called 2. test_different_commands_racing_on_locked_play - Tests that ANY command type is blocked on locked plays - Prevents race conditions between different command types - Tests multiple commands: walk, strikeout, single, xcheck These tests ensure the play locking idempotency guard works correctly for both lock acquisition and release, and prevents all command types from racing (not just duplicate commands). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| command_logic | ||
| gameplay_models | ||
| in_game | ||
| other | ||
| players_refactor | ||
| conftest.py | ||
| factory.py | ||
| test_api_calls.py | ||
| test_play_locking.py | ||