mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 10:33:20 +00:00
more tests for ifc2x3
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user