more tests for ifc2x3

This commit is contained in:
Andrej730
2024-05-09 14:59:23 +05:00
parent 2d35869c41
commit 8ffb77551f
35 changed files with 181 additions and 31 deletions
@@ -43,3 +43,7 @@ class TestAddFilling(test.bootstrap.IFC4):
ifcopenshell.api.run("void.add_filling", self.file, opening=opening2, element=door)
assert not opening1.HasFillings
assert opening2.HasFillings[0].RelatedBuildingElement == door
class TestAddFillingIFC2X3(test.bootstrap.IFC2X3, TestAddFilling):
pass
@@ -77,3 +77,7 @@ class TestAddOpening(test.bootstrap.IFC4):
opening.ObjectPlacement = placement
ifcopenshell.api.run("void.add_opening", self.file, opening=opening, element=wall)
assert opening.ObjectPlacement == placement
class TestAddOpeningIFC2X3(test.bootstrap.IFC2X3, TestAddOpening):
pass
@@ -47,3 +47,7 @@ class TestRemoveOpening(test.bootstrap.IFC4):
assert len(self.file.by_type("IfcRelFillsElement")) == 0
assert wall
assert door
class TestRemoveOpeningIFC2X3(test.bootstrap.IFC2X3, TestRemoveOpening):
pass