Create a mock player with specified file system contents.
(name: str, files: dict[str, str] | None = None, **kwargs)
| 79 | |
| 80 | |
| 81 | def 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 |
nothing calls this directly
no test coverage detected