Create BattleCode23Arena instance.
(self, tmp_log_dir, minimal_config)
| 238 | |
| 239 | @pytest.fixture |
| 240 | def arena(self, tmp_log_dir, minimal_config): |
| 241 | """Create BattleCode23Arena instance.""" |
| 242 | config = minimal_config.copy() |
| 243 | config["game"]["name"] = "BattleCode23" |
| 244 | config["game"]["sims_per_round"] = 10 |
| 245 | config["players"] = [ |
| 246 | {"name": "p1", "agent": "dummy"}, |
| 247 | {"name": "p2", "agent": "dummy"}, |
| 248 | ] |
| 249 | arena = BattleCode23Arena.__new__(BattleCode23Arena) |
| 250 | arena.submission = "src/mysubmission" |
| 251 | arena.log_local = tmp_log_dir |
| 252 | arena.config = config |
| 253 | arena.logger = MagicMock() |
| 254 | return arena |
| 255 | |
| 256 | def _create_round_log_dir(self, tmp_log_dir, round_num): |
| 257 | """Helper to create round log directory.""" |
nothing calls this directly
no outgoing calls
no test coverage detected