Skip to content

Commit

Permalink
Fix test_specification_editor_window
Browse files Browse the repository at this point in the history
There was a wrong signature in a mock lambda

Re #2294
  • Loading branch information
soininen committed Aug 31, 2023
1 parent 734be82 commit 5687dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/project_item/test_specification_editor_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down

0 comments on commit 5687dcf

Please sign in to comment.