From 1cdd4c27fc539c8fd1299ca67c7323d5ddfc030f Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 5 Jul 2024 17:02:07 +0500 Subject: [PATCH] fix geometry core tests after fccf56d5f --- src/blenderbim/blenderbim/core/tool.py | 1 + src/blenderbim/test/core/test_geometry.py | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/blenderbim/blenderbim/core/tool.py b/src/blenderbim/blenderbim/core/tool.py index 1f3893cb2a..c74fffd2a1 100644 --- a/src/blenderbim/blenderbim/core/tool.py +++ b/src/blenderbim/blenderbim/core/tool.py @@ -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 diff --git a/src/blenderbim/test/core/test_geometry.py b/src/blenderbim/test/core/test_geometry.py index c55033b857..ad820d310d 100644 --- a/src/blenderbim/test/core/test_geometry.py +++ b/src/blenderbim/test/core/test_geometry.py @@ -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()