feat: introduce device plugin runtime boundary
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user