feat: introduce device plugin runtime boundary

This commit is contained in:
DCCONSTRUCTIONS
2026-07-16 13:49:10 +03:00
parent 9225227421
commit 27bf7527df
45 changed files with 3748 additions and 1062 deletions
+5 -5
View File
@@ -6,7 +6,7 @@ from typing import Any
from pytest import MonkeyPatch
import k1link.web.app as web_app
import k1link.web.xgrids_k1_facade as xgrids_backend
def test_ble_scan_exposes_every_device_and_only_labels_likely_k1(
@@ -34,8 +34,8 @@ def test_ble_scan_exposes_every_device_and_only_labels_likely_k1(
]
}
monkeypatch.setattr(web_app, "scan", fake_scan)
service = web_app.ConsoleService(tmp_path)
monkeypatch.setattr(xgrids_backend, "scan", fake_scan)
service = xgrids_backend.XgridsK1CompatibilityService(tmp_path)
state = asyncio.run(service.scan_ble(6.0))
@@ -48,8 +48,8 @@ def test_ble_scan_exposes_every_device_and_only_labels_likely_k1(
def test_viewer_settings_are_validated_and_exposed(tmp_path: Path) -> None:
service = web_app.ConsoleService(tmp_path)
request = web_app.ViewerSettingsRequest(
service = xgrids_backend.XgridsK1CompatibilityService(tmp_path)
request = xgrids_backend.ViewerSettingsRequest(
point_size=4.0,
color_mode="height",
palette="viridis",