mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 16:21:01 +00:00
fix test_removing_existing_element_representations_and_mapping_type_representations
Started failing after 8061e22. Test was instantiating abstract IfcProductRepresentation
This commit is contained in:
@@ -32,8 +32,9 @@ class TestMapTypeRepresentations(test.bootstrap.IFC4):
|
|||||||
def test_removing_existing_element_representations_and_mapping_type_representations(self):
|
def test_removing_existing_element_representations_and_mapping_type_representations(self):
|
||||||
context = self.file.createIfcGeometricRepresentationSubContext()
|
context = self.file.createIfcGeometricRepresentationSubContext()
|
||||||
element = self.file.createIfcWall(
|
element = self.file.createIfcWall(
|
||||||
Representation=self.file.createIfcProductRepresentation(
|
Representation=self.file.create_entity(
|
||||||
Representations=[self.file.createIfcShapeRepresentation(ContextOfItems=context)]
|
"IfcProductDefinitionShape",
|
||||||
|
Representations=[self.file.createIfcShapeRepresentation(ContextOfItems=context)],
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
type = self.file.createIfcWallType(
|
type = self.file.createIfcWallType(
|
||||||
|
|||||||
Reference in New Issue
Block a user