feat: add gesture sequences and calibrated pixel drags

This commit is contained in:
chenmingxuan committed 2026-11-02 11:53:27 +08:00
1 parent 2a3bbaa3fb
commit 479a185192
31 files changed
+2440 -44

No files matched your search

@@ -121,11 +121,20 @@ def test_stop_server_when_not_running(monkeypatch):
"""Verify stop_server returns early when no server is running."""
monkeypatch.setattr("artemis.runtime.server_lifecycle.is_port_in_use", lambda port, **k: False)
monkeypatch.setattr("artemis.runtime.server_lifecycle.find_server_pids", lambda port: [])
# A simulated offline server must not touch the user's live metadata or leases.
clear_info = MagicMock()
cleanup_locks = MagicMock(return_value=0)
monkeypatch.setattr("artemis.runtime.server_lifecycle.clear_server_info", clear_info)
monkeypatch.setattr(
"artemis.runtime.server_lifecycle.DeviceExecutionLock.cleanup_stale_locks", cleanup_locks
)
success, msg, stopped = stop_server(8000)
assert success is True
assert stopped == []
assert "No active server" in msg
clear_info.assert_called_once_with(port=8000)
cleanup_locks.assert_called_once_with()
def test_server_main_parses_non_default_bind_address(monkeypatch):