mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-01 09:26:26 +00:00
rules fixtures: append comment indicating fixture origin
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import time
|
||||
|
||||
import ifcopenshell
|
||||
from generate import normalize_header
|
||||
from generate import normalize_header, pass_if, write_fixture
|
||||
|
||||
latitudes = [
|
||||
(False, (-361, 0, 0)),
|
||||
@@ -47,4 +47,4 @@ for i, (is_valid, lat) in enumerate(latitudes):
|
||||
)
|
||||
f.createIfcRelAggregates(ifcopenshell.guid.new(), ownerhist, None, None, proj, [site])
|
||||
normalize_header(f)
|
||||
f.write(f"{'pass' if is_valid else 'fail'}-site-latitude-{i}-ifc2x3.ifc")
|
||||
write_fixture(f, __file__, pass_if(is_valid), f"site-latitude-{i}-ifc2x3")
|
||||
|
||||
Reference in New Issue
Block a user