ifcpatch - add ifc2x3 tests and test for MergeDuplicateTypes

This commit is contained in:
Andrej730
2024-04-12 10:57:35 +05:00
parent 67a6e4d258
commit 9e310318d4
6 changed files with 181 additions and 79 deletions
@@ -97,7 +97,7 @@ class TestAssignType(test.bootstrap.IFC4):
assert mapped_rep.RepresentationType == "MappedRepresentation"
assert mapped_rep.Items[0].MappingSource.MappedRepresentation == rep
def test_map_representation(self):
def test_do_not_map_representation_if_type_was_assigned_previously(self):
element_type = ifcopenshell.api.run("root.create_entity", self.file, ifc_class="IfcWallType")
context = self.file.createIfcGeometricRepresentationContext()
rep = self.file.createIfcShapeRepresentation(ContextOfItems=context)