rules fixtures: append comment indicating fixture origin

This commit is contained in:
Andrej730
2026-08-03 16:51:10 +05:00
parent ea0be33aa1
commit 0e9ef70971
167 changed files with 238 additions and 75 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import ifcopenshell
from generate import normalize_header
from generate import normalize_header, pass_if, write_fixture
dims = [
(1, 0, 0, 0, 0, 0, 0),
@@ -18,4 +18,4 @@ for i, d in enumerate(dims):
f.createIfcMeasureWithUnit(f.createIfcLengthMeasure(5.0), f.createIfcSIUnit(Prefix="NANO", Name="METRE")),
)
normalize_header(f)
f.write(f"{'pass' if i == 0 else 'fail'}-conv-unit-{i}-ifc2x3.ifc")
write_fixture(f, __file__, pass_if(i == 0), f"conv-unit-{i}-ifc2x3")