feat: activate self-hosted lidar spatial scene
This commit is contained in:
@@ -46,3 +46,30 @@ def test_ble_scan_exposes_every_device_and_only_labels_likely_k1(
|
||||
]
|
||||
assert [device["likely_k1"] for device in state["devices"]] == [True, False]
|
||||
|
||||
|
||||
def test_viewer_settings_are_validated_and_exposed(tmp_path: Path) -> None:
|
||||
service = web_app.ConsoleService(tmp_path)
|
||||
request = web_app.ViewerSettingsRequest(
|
||||
point_size=4.0,
|
||||
color_mode="height",
|
||||
palette="viridis",
|
||||
custom_color="#102030",
|
||||
accumulation_seconds=18,
|
||||
show_points=True,
|
||||
show_trajectory=False,
|
||||
show_grid=False,
|
||||
)
|
||||
|
||||
state = service.update_viewer_settings(request)
|
||||
|
||||
assert state["rerun_grpc_url"] is None
|
||||
assert state["viewer_settings"] == {
|
||||
"point_size": 4.0,
|
||||
"color_mode": "height",
|
||||
"palette": "viridis",
|
||||
"custom_color": "#102030",
|
||||
"accumulation_seconds": 18.0,
|
||||
"show_points": True,
|
||||
"show_trajectory": False,
|
||||
"show_grid": False,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user