Accept ARNavi VPS 0.2.0 through the existing client contract

This commit is contained in:
DCCONSTRUCTIONS
2026-09-30 15:34:24 +03:00
parent 6dd652f71e
commit df36e92500
5 changed files with 19 additions and 1 deletions
+7
View File
@@ -72,3 +72,10 @@ def test_initial_usb_apply_accepts_current_shipped_host():
host["status"]["version"] = version
assert apply(hosts, "device", 1) == {"ok": True}
hosts.equipment.apply.assert_called_once_with("device", 1)
def test_initial_apply_accepts_shared_host_without_changing_legacy_pairing():
hosts, _, host = context()
host["status"]["version"] = "0.2.0"
assert apply(hosts, "device", 1) == {"ok": True}
hosts.equipment.apply.assert_called_once_with("device", 1)
+1 -1
View File
@@ -40,7 +40,7 @@ def sender(monkeypatch):
return sent
@pytest.mark.parametrize("version", ["0.1.26", "0.1.27", "0.1.28", "0.1.29", "0.1.30", "0.1.31"])
@pytest.mark.parametrize("version", ["0.1.26", "0.1.27", "0.1.28", "0.1.29", "0.1.30", "0.1.31", "0.2.0"])
def test_queue_survives_restart_and_idempotent_submit(ready, monkeypatch, version):
equipment, hosts, row = ready
for host in hosts.rows():