mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 10:11:46 +00:00
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:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user