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

Function create_mock_player

tests/arenas/conftest.py:81–84  ·  view source on GitHub ↗

Create a mock player with specified file system contents.

(name: str, files: dict[str, str] | None = None, **kwargs)

Source from the content-addressed store, hash-verified

79
80
81def create_mock_player(name: str, files: dict[str, str] | None = None, **kwargs) -> MockPlayer:
82 """Create a mock player with specified file system contents."""
83 env = MockEnvironment(files=files, **kwargs)
84 return MockPlayer(name=name, environment=env)
85
86
87@pytest.fixture

Callers

nothing calls this directly

Calls 2

MockEnvironmentClass · 0.85
MockPlayerClass · 0.85

Tested by

no test coverage detected