Create BattleCode24Arena instance.
(self, tmp_log_dir, minimal_config)
| 251 | |
| 252 | @pytest.fixture |
| 253 | def arena(self, tmp_log_dir, minimal_config): |
| 254 | """Create BattleCode24Arena instance.""" |
| 255 | config = minimal_config.copy() |
| 256 | config["game"]["name"] = "BattleCode24" |
| 257 | config["game"]["sims_per_round"] = 10 |
| 258 | config["players"] = [ |
| 259 | {"name": "p1", "agent": "dummy"}, |
| 260 | {"name": "p2", "agent": "dummy"}, |
| 261 | ] |
| 262 | arena = BattleCode24Arena.__new__(BattleCode24Arena) |
| 263 | arena.submission = "src/mysubmission" |
| 264 | arena.log_local = tmp_log_dir |
| 265 | arena.config = config |
| 266 | arena.logger = MagicMock() |
| 267 | return arena |
| 268 | |
| 269 | def _create_round_log_dir(self, tmp_log_dir, round_num): |
| 270 | """Helper to create round log directory.""" |
nothing calls this directly
no outgoing calls
no test coverage detected