(self)
| 14 | """Test UnityInstance dataclass""" |
| 15 | |
| 16 | def test_default_values(self) -> None: |
| 17 | instance = UnityInstance( |
| 18 | instance_id="/Users/dev/MyGame", |
| 19 | project_name="MyGame", |
| 20 | unity_version="2022.3.20f1", |
| 21 | ) |
| 22 | |
| 23 | assert instance.instance_id == "/Users/dev/MyGame" |
| 24 | assert instance.project_name == "MyGame" |
| 25 | assert instance.unity_version == "2022.3.20f1" |
| 26 | assert instance.capabilities == [] |
| 27 | assert instance.status == InstanceStatus.DISCONNECTED |
| 28 | assert instance.reader is None |
| 29 | assert instance.writer is None |
| 30 | |
| 31 | def test_is_connected_without_writer(self) -> None: |
| 32 | instance = UnityInstance( |
nothing calls this directly
no test coverage detected