Create RoboCodeArena instance.
(self, tmp_log_dir, minimal_config)
| 138 | |
| 139 | @pytest.fixture |
| 140 | def arena(self, tmp_log_dir, minimal_config): |
| 141 | """Create RoboCodeArena instance.""" |
| 142 | config = minimal_config.copy() |
| 143 | config["game"]["name"] = "RoboCode" |
| 144 | config["game"]["sims_per_round"] = 20 # 2 * SIMS_PER_RUN |
| 145 | arena = RoboCodeArena.__new__(RoboCodeArena) |
| 146 | arena.submission = "robots/custom/" |
| 147 | arena.log_local = tmp_log_dir |
| 148 | arena.config = config |
| 149 | arena.logger = type("Logger", (), {"debug": lambda self, msg: None, "info": lambda self, msg: None})() |
| 150 | return arena |
| 151 | |
| 152 | def _create_results_file(self, round_dir, idx: int, results: list[tuple[int, str, int]]): |
| 153 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected