Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rbreu committed May 8, 2024
1 parent 1319298 commit 7ca33cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,9 @@ def test_on_action_paste_when_empty(
text_mock.return_value = ''
view.on_action_paste()
assert len(view.scene.items()) == 0
notification_mock.assert_called_once_with(
view, 'No image data or text in clipboard')
notification_mock.assert_called()
assert notification_mock.call_args[0][0] == view
assert notification_mock.call_args[0][1].startswith('No image data')
clear_mock.assert_not_called()
view.cancel_active_modes.assert_called_once_with()

Expand Down

0 comments on commit 7ca33cf

Please sign in to comment.