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

Method test_missing_file

tests/arenas/test_bridge.py:56–67  ·  view source on GitHub ↗

Test that missing bridge_agent.py fails validation.

(self, arena, mock_player_factory)

Source from the content-addressed store, hash-verified

54 assert error is None
55
56 def test_missing_file(self, arena, mock_player_factory):
57 """Test that missing bridge_agent.py fails validation."""
58 player = mock_player_factory(
59 name="test_player",
60 files={},
61 command_outputs={
62 "ls": {"output": "other.py\n", "returncode": 0},
63 },
64 )
65 is_valid, error = arena.validate_code(player)
66 assert is_valid is False
67 assert "bridge_agent.py" in error
68
69 def test_missing_bid_function(self, arena, mock_player_factory):
70 """Test that missing get_bid function fails validation."""

Callers

nothing calls this directly

Calls 2

mock_player_factoryFunction · 0.85
validate_codeMethod · 0.45

Tested by

no test coverage detected