test: require schema-valid Optimize fixture

Issue: #248
User-Visible: no
This commit is contained in:
Sergey Matyunin
2026-08-23 01:24:49 +03:00
parent 5ad4280ef7
commit 120b491eba
@@ -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"]