fix geometry core tests after fccf56d5f

This commit is contained in:
Andrej730
2024-07-05 17:02:07 +05:00
parent 7acea25fdf
commit 1cdd4c27fc
2 changed files with 5 additions and 4 deletions
+1
View File
@@ -412,6 +412,7 @@ class Geometry:
def should_use_presentation_style_assignment(cls): pass
def unresolve_type_representation(cls, representation, element): pass
def delete_opening_object_placement(cls, opening): pass
def switch_from_representation(cls, obj, representation): pass
@interface
+4 -4
View File
@@ -321,9 +321,9 @@ class TestRemoveRepresentation:
geometry.has_data_users("data").should_be_called().will_return(True)
geometry.get_elements_of_type("type").should_be_called().will_return(["element"])
ifc.get_object("element").should_be_called().will_return("obj")
geometry.recreate_object_with_data("obj").should_be_called()
geometry.switch_from_representation("obj", "representation").should_be_called()
ifc.get_object("type").should_be_called().will_return("type_obj")
geometry.recreate_object_with_data("type_obj").should_be_called()
geometry.switch_from_representation("type_obj", "representation").should_be_called()
ifc.run("geometry.unassign_representation", product="type", representation="representation").should_be_called()
ifc.run("geometry.remove_representation", representation="representation").should_be_called()
geometry.delete_data("data").should_be_called()
@@ -344,7 +344,7 @@ class TestRemoveRepresentation:
geometry.get_element_type("element").should_be_called().will_return(None)
geometry.get_representation_data("representation").should_be_called().will_return("data")
geometry.has_data_users("data").should_be_called().will_return(True)
geometry.recreate_object_with_data("obj").should_be_called()
geometry.switch_from_representation("obj", "representation").should_be_called()
ifc.run(
"geometry.unassign_representation", product="element", representation="representation"
).should_be_called()
@@ -359,7 +359,7 @@ class TestRemoveRepresentation:
geometry.is_type_product("element").should_be_called().will_return(False)
geometry.get_representation_data("representation").should_be_called().will_return("data")
geometry.has_data_users("data").should_be_called().will_return(True)
geometry.recreate_object_with_data("obj").should_be_called()
geometry.switch_from_representation("obj", "representation").should_be_called()
ifc.run(
"geometry.unassign_representation", product="element", representation="representation"
).should_be_called()