From 5687dcf54bbbc6ad23b743d87ab5dbb32bb1b870 Mon Sep 17 00:00:00 2001 From: Antti Soininen Date: Thu, 31 Aug 2023 15:20:22 +0300 Subject: [PATCH] Fix test_specification_editor_window There was a wrong signature in a mock lambda Re #2294 --- tests/project_item/test_specification_editor_window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/project_item/test_specification_editor_window.py b/tests/project_item/test_specification_editor_window.py index 9ddfb1d08..9d25b81b0 100644 --- a/tests/project_item/test_specification_editor_window.py +++ b/tests/project_item/test_specification_editor_window.py @@ -155,7 +155,7 @@ def test_rename_specification_for_item(self): project_item.set_specification(specification) self._toolbox.project().add_item(project_item) window = SpecificationEditorWindowBase(self._toolbox, item=project_item) - mock_make_specification.side_effect = lambda name, exiting: ProjectItemSpecification( + mock_make_specification.side_effect = lambda name: ProjectItemSpecification( name, window._spec_toolbar.description(), "Mock" ) mock_save.return_value = {}