Skip to content

Commit

Permalink
Fix assert_called_once problem because of Python 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ntoll committed Mar 21, 2019
1 parent 1b30c4c commit 383aee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/interface/test_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 383aee9

Please sign in to comment.