From 7ca33cfc0bd77ad9b5eb4a13a08086ce578e2fcd Mon Sep 17 00:00:00 2001 From: Rebecca Breu Date: Wed, 8 May 2024 23:07:39 +0200 Subject: [PATCH] Fix unit tests --- tests/test_view.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_view.py b/tests/test_view.py index 497cc0f..f451453 100644 --- a/tests/test_view.py +++ b/tests/test_view.py @@ -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()