Create BattleCodeArena instance with mocked environment.
(self, tmp_log_dir, minimal_config)
| 25 | |
| 26 | @pytest.fixture |
| 27 | def arena(self, tmp_log_dir, minimal_config): |
| 28 | """Create BattleCodeArena instance with mocked environment.""" |
| 29 | arena = BattleCode25Arena.__new__(BattleCode25Arena) |
| 30 | arena.submission = f"src/{BC_FOLDER}" |
| 31 | arena.log_local = tmp_log_dir |
| 32 | arena.run_cmd_round = "python run.py run" |
| 33 | return arena |
| 34 | |
| 35 | def test_valid_submission(self, arena, mock_player_factory): |
| 36 | """Test that a valid bot.py passes validation.""" |
nothing calls this directly
no outgoing calls
no test coverage detected