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

Method arena

tests/arenas/test_chess.py:22–29  ·  view source on GitHub ↗

Create ChessArena instance with mocked environment.

(self, tmp_log_dir, minimal_config)

Source from the content-addressed store, hash-verified

20
21 @pytest.fixture
22 def arena(self, tmp_log_dir, minimal_config):
23 """Create ChessArena instance with mocked environment."""
24 arena = ChessArena.__new__(ChessArena)
25 arena.submission = "src/"
26 arena.log_local = tmp_log_dir
27 # Minimal attributes used in validate_code
28 arena.logger = type("Logger", (), {"debug": lambda self, msg: None, "info": lambda self, msg: None})()
29 return arena
30
31 def test_valid_submission(self, arena, mock_player_factory):
32 """Valid C++ engine compiles and produces `src/kojiro` executable."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected