mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-20 20:22:09 +00:00
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:
@@ -1,4 +1,5 @@
|
||||
import ifcopenshell
|
||||
from generate import normalize_header
|
||||
|
||||
dims = [
|
||||
(1, 0, 0, 0, 0, 0, 0),
|
||||
@@ -16,4 +17,5 @@ for i, d in enumerate(dims):
|
||||
"beard-second",
|
||||
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")
|
||||
|
||||
Reference in New Issue
Block a user