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

Method arena

tests/arenas/test_corewar.py:27–34  ·  view source on GitHub ↗

Create CoreWarArena 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 CoreWarArena instance with mocked environment."""
29 arena = CoreWarArena.__new__(CoreWarArena)
30 arena.submission = "warrior.red"
31 arena.log_local = tmp_log_dir
32 arena.run_cmd_round = "./src/pmars"
33 arena.config = minimal_config # validate_code reads game_config (sims_per_round) for -r
34 return arena
35
36 def test_valid_submission(self, arena, mock_player_factory):
37 """Test that a valid warrior file passes validation."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected