ifc2x3 tests

This commit is contained in:
Andrej730
2024-05-10 11:33:33 +05:00
parent c50d1ea2fe
commit 1e630ede08
41 changed files with 315 additions and 94 deletions
@@ -121,3 +121,7 @@ class TestAssignContainer(test.bootstrap.IFC4):
ifcopenshell.api.run("aggregate.assign_object", self.file, products=[subelement], relating_object=aggregate)
ifcopenshell.api.run("spatial.assign_container", self.file, products=[subelement], relating_structure=element)
assert not ifcopenshell.util.element.get_aggregate(subelement)
class TestAssignContainerIFC2X3(test.bootstrap.IFC2X3, TestAssignContainer):
pass
@@ -57,3 +57,7 @@ class TestUnassignContainer(test.bootstrap.IFC4):
ifcopenshell.api.run("spatial.assign_container", self.file, products=[subelement], relating_structure=element)
ifcopenshell.api.run("spatial.unassign_container", self.file, products=[subelement])
assert len(self.file.by_type("IfcRelContainedInSpatialStructure")) == 0
class TestUnassignContainerIFC2X3(test.bootstrap.IFC2X3, TestUnassignContainer):
pass