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

Method arena

tests/arenas/test_battlecode24.py:37–50  ·  view source on GitHub ↗

Create BattleCode24Arena instance with mocked environment.

(self, tmp_log_dir, minimal_config)

Source from the content-addressed store, hash-verified

35
36 @pytest.fixture
37 def arena(self, tmp_log_dir, minimal_config):
38 """Create BattleCode24Arena instance with mocked environment."""
39 config = minimal_config.copy()
40 config["game"]["name"] = "BattleCode24"
41 config["game"]["sims_per_round"] = 10
42 config["players"] = [
43 {"name": "p1", "agent": "dummy"},
44 {"name": "p2", "agent": "dummy"},
45 ]
46 arena = BattleCode24Arena.__new__(BattleCode24Arena)
47 arena.submission = "src/mysubmission"
48 arena.log_local = tmp_log_dir
49 arena.config = config
50 return arena
51
52 def test_valid_submission(self, arena, mock_player_factory):
53 """Test that a valid BattleCode24 submission passes validation."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected