mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-30 08:33:10 +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
|
||||
|
||||
cases = (
|
||||
("pass", "label-values", ("test1", "test2")),
|
||||
@@ -15,4 +16,5 @@ for result, name, values in cases:
|
||||
for v in values
|
||||
]
|
||||
ifc_file.create_entity("IfcPropertyListValue", Name="Test", ListValues=list_values)
|
||||
normalize_header(ifc_file)
|
||||
ifc_file.write(f"{result}-property-list-value-{name}.ifc")
|
||||
|
||||
Reference in New Issue
Block a user