mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-05 03:54:04 +08:00
Use Metric
This commit is contained in:
@@ -26,7 +26,7 @@ class LocalizationSettingsOwner:
|
||||
def snapshot(self):
|
||||
rows = []
|
||||
for key, label, reason in (
|
||||
("IsMetric", "Use Kilometers (km/h)", "On uses kilometers; Off uses miles. Saved speed-limit offsets keep their physical values."),
|
||||
("IsMetric", "Use Metric", "On uses kilometers; Off uses miles. Saved speed-limit offsets keep their physical values."),
|
||||
("IsRhdDetected", "Right-Hand Drive", "Sets the initial driver-monitoring side for the next drive. Automatic wheel-side detection continues."),
|
||||
):
|
||||
raw, readable = read_saved(self.params, key, 8)
|
||||
|
||||
@@ -23,7 +23,7 @@ def test_real_gateway_units_and_wheel_side_without_a_vehicle(tmp_path):
|
||||
def preview(index, value):
|
||||
page = gateway.page("localization", token, generation)
|
||||
assert page["title"] == "Localization" and not page["vehicleIdentified"]
|
||||
assert [row["label"] for row in page["rows"]] == ["Use Kilometers (km/h)", "Right-Hand Drive", "Language"]
|
||||
assert [row["label"] for row in page["rows"]] == ["Use Metric", "Right-Hand Drive", "Language"]
|
||||
return gateway.preview(page["view"], index, 0, token, generation, value=value)["intent"]
|
||||
|
||||
assert gateway.confirm(preview(0, "On"), token, generation)
|
||||
|
||||
Reference in New Issue
Block a user