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

Method arena

tests/arenas/test_bridge.py:27–40  ·  view source on GitHub ↗

Create BridgeArena 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 BridgeArena instance with mocked environment."""
29 config = minimal_config.copy()
30 config["game"]["name"] = "Bridge"
31 config["players"] = [
32 {"name": "north", "agent": "dummy"},
33 {"name": "east", "agent": "dummy"},
34 {"name": "south", "agent": "dummy"},
35 {"name": "west", "agent": "dummy"},
36 ]
37 arena = BridgeArena.__new__(BridgeArena)
38 arena.submission = "bridge_agent.py"
39 arena.log_local = tmp_log_dir
40 return arena
41
42 def test_valid_submission(self, arena, mock_player_factory):
43 """Test that a valid Bridge bot passes validation."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected