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,7 +1,7 @@
import time
import ifcopenshell
from generate import normalize_header
from generate import normalize_header, pass_if, write_fixture
for ents in [
("IfcWall",),
@@ -57,4 +57,4 @@ for ents in [
)
valid = not (set(ents) - {"IfcZone", "IfcSpace"})
normalize_header(f)
f.write(f"{'pass' if valid else 'fail'}-zone-with-{'-'.join(ents)}-{f.schema.lower()}.ifc")
write_fixture(f, __file__, pass_if(valid), f"zone-with-{'-'.join(ents)}-{f.schema.lower()}")