mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-29 03:09:36 +00:00
test: require schema-valid Optimize fixture
Issue: #248 User-Visible: no
This commit is contained in:
@@ -87,6 +87,8 @@ def test_optimize_roundtrip_fixture_has_one_backend_canonical_target() -> None:
|
||||
fixture = json.loads(OPTIMIZE_ROUNDTRIP_FIXTURE.read_text(encoding="utf-8"))
|
||||
source = fixture["input"]
|
||||
expected = fixture["expected"]
|
||||
assert all(space["view_box"] == [0, 0, 1, 1]
|
||||
for space in source["config"]["spaces"])
|
||||
assert canonicalize_config_geometry(source["config"]) == expected["config"]
|
||||
assert canonicalize_layout_geometry(source["layout"]) == expected["layout"]
|
||||
assert CONFIG_SCHEMA(source["config"]) == expected["config"]
|
||||
|
||||
Reference in New Issue
Block a user