Create BridgeArena instance with mocked environment.
(self, tmp_log_dir, minimal_config)
| 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.""" |
nothing calls this directly
no outgoing calls
no test coverage detected