MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / arena

Method arena

tests/arenas/test_battlecode25.py:27–33  ·  view source on GitHub ↗

Create BattleCodeArena instance with mocked environment.

(self, tmp_log_dir, minimal_config)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected