Fix regression when removing an active representation.

Some tests removed since they no longer make sense with the new item
editing mode.
This commit is contained in:
Dion Moult
2025-02-08 00:21:38 +11:00
parent 889a9e3891
commit fcee54c572
3 changed files with 10 additions and 43 deletions
-1
View File
@@ -733,7 +733,6 @@ def the_object_name_has_a_representation_type_of_context(name, type, context):
element = ifc.by_id(the_object_name_exists(name).BIMObjectProperties.ifc_definition_id)
context, subcontext, target_view = context.split("/")
rep = ifcopenshell.util.representation.get_representation(element, context, subcontext or None, target_view or None)
rep =ifcopenshell.util.representation.resolve_representation(rep)
assert rep
assert rep.RepresentationType == type, f"The object {name} does not have a {type} representation"