Fix #6094. Fix failing core tests.

This commit is contained in:
Dion Moult
2025-02-04 13:36:28 +11:00
parent a35ef32ee6
commit 0c41f0c32c
7 changed files with 83 additions and 53 deletions
+3
View File
@@ -50,6 +50,9 @@ class TestAddStyle:
class TestRemoveStyle:
def remove_a_style_common(self, ifc, style):
style.is_editing_style().should_be_called().will_return(True)
style.get_currently_edited_material().should_be_called().will_return("obj")
style.disable_editing().should_be_called()
ifc.get_object("style").should_be_called().will_return("obj")
ifc.unlink(element="style").should_be_called()
ifc.run("style.remove_style", style="style").should_be_called()