diff --git a/tests/interface/test_editor.py b/tests/interface/test_editor.py index 3543a5bbb..be6cc638a 100644 --- a/tests/interface/test_editor.py +++ b/tests/interface/test_editor.py @@ -146,7 +146,7 @@ def test_Editor_connect_margin_1_works(): modifiers = Qt.NoModifier ep.marginClicked.emit(margin, line, modifiers) - mock_fn.assert_called_once() + assert mock_fn.call_count == 1 args, _kwargs = mock_fn.call_args call_margin, call_line, _call_modifiers = args assert margin == call_margin