(self)
| 109 | assert d["capabilities"] == ["manage_editor"] |
| 110 | |
| 111 | def test_update_heartbeat(self) -> None: |
| 112 | instance = UnityInstance( |
| 113 | instance_id="/test", |
| 114 | project_name="Test", |
| 115 | unity_version="2022.3", |
| 116 | ) |
| 117 | old_heartbeat = instance.last_heartbeat |
| 118 | |
| 119 | # Small delay to ensure time difference |
| 120 | import time |
| 121 | |
| 122 | time.sleep(0.01) |
| 123 | |
| 124 | instance.update_heartbeat() |
| 125 | assert instance.last_heartbeat > old_heartbeat |
| 126 | |
| 127 | def test_set_status_to_reloading(self) -> None: |
| 128 | instance = UnityInstance( |
nothing calls this directly
no test coverage detected