From c61e3670a8cf248aa5a229bae2dc29eef041fe47 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 11 Nov 2024 16:23:13 +0500 Subject: [PATCH] fix test_removing_existing_element_representations_and_mapping_type_representations Started failing after 8061e22. Test was instantiating abstract IfcProductRepresentation --- .../test/api/type/test_map_type_representation.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ifcopenshell-python/test/api/type/test_map_type_representation.py b/src/ifcopenshell-python/test/api/type/test_map_type_representation.py index 1540066266..cd52591fd7 100644 --- a/src/ifcopenshell-python/test/api/type/test_map_type_representation.py +++ b/src/ifcopenshell-python/test/api/type/test_map_type_representation.py @@ -32,8 +32,9 @@ class TestMapTypeRepresentations(test.bootstrap.IFC4): def test_removing_existing_element_representations_and_mapping_type_representations(self): context = self.file.createIfcGeometricRepresentationSubContext() element = self.file.createIfcWall( - Representation=self.file.createIfcProductRepresentation( - Representations=[self.file.createIfcShapeRepresentation(ContextOfItems=context)] + Representation=self.file.create_entity( + "IfcProductDefinitionShape", + Representations=[self.file.createIfcShapeRepresentation(ContextOfItems=context)], ) ) type = self.file.createIfcWallType(