feat: add branch overviews scoped outdoor plans and complete room moves

This commit is contained in:
jhartworks committed 2026-11-19 15:12:11 +01:00
1 parent 382d6e04f2
commit 16eddacebf
35 files changed
+2598 -2116

No files matched your search

+5
View File
@@ -55,6 +55,11 @@ def test_topology_and_per_location_outdoor_membership_survive_validation() -> No
assert result["topology"] == topology
assert result["floors"][0]["building_id"] == "ras19"
assert result["floors"][1]["outdoor_location_id"] == "urbach"
for field, owner in (("outdoor_branch_id", "hq"), ("outdoor_building_id", "ras19")):
item = {**outdoor, "outdoor_location_id": None, field: owner}
assert BUILDING_SCHEMA({**b, "floors": [floor, item]})["floors"][1][field] == owner
with pytest.raises(vol.Invalid):
BUILDING_SCHEMA({**b, "floors": [{**item, field: 123}]})
assert "topology" not in BUILDING_SCHEMA(empty_building())
for bad in (
{**b, "topology": {**topology, "branches": [{"id": "hq", "name": "Zentrale", "location_id": 12}]}},