mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-19 03:33:48 +00:00
validate fixtures: validate expected error count
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
from pathlib import Path
|
||||
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api.owner
|
||||
import ifcopenshell.api.root
|
||||
from ...fixture_generate import normalize_header, pass_if, write_fixture
|
||||
|
||||
guid1 = "3pdqyORIn8KBHZAhhtJ72T"
|
||||
guid2 = "1sEzC8v31DshmvW5t5P631"
|
||||
@@ -23,5 +22,5 @@ for schema in ("IFC2X3", "IFC4", "IFC4X3"):
|
||||
wall1.GlobalId = guid1
|
||||
wall2.GlobalId = guid1 if status == "fail" else guid2
|
||||
|
||||
filename = f"{status}-{'not-' if status == 'pass' else ''}duplicated-guids-{schema.lower()}.ifc"
|
||||
f.write(Path(__file__).parent / filename)
|
||||
normalize_header(f)
|
||||
write_fixture(f, __file__, pass_if(status == "pass"), f"duplicated-guids-{schema.lower()}")
|
||||
|
||||
Reference in New Issue
Block a user