rules fixture: nornallize headers

- to avoid some diffs on regeneration
- some fixtures had problems with the header, so `fail` for them wasn't
really testing the intended case, because small issues in the header
would make fixture fail regardless
This commit is contained in:
Andrej730
2026-08-03 16:07:29 +05:00
parent e57c326ad1
commit 44ce7c7e8a
167 changed files with 218 additions and 138 deletions
@@ -1,4 +1,5 @@
import ifcopenshell
from generate import normalize_header
for i, box_alignment in enumerate(["top-left", "center", "invalid", "CENTER"]):
f = ifcopenshell.file(schema="IFC2X3")
@@ -12,4 +13,5 @@ for i, box_alignment in enumerate(["top-left", "center", "invalid", "CENTER"]):
)
suffix = "-uppercase" if box_alignment == "CENTER" else ""
normalize_header(f)
f.write(f"{'pass' if i in (0,1,3) else 'fail'}-{i}-box-alignment-{box_alignment}{suffix}-ifc2x3.ifc")