Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test calling called_once_with() instead of assert_called_once_with(). #2486

Merged
merged 1 commit into from
Dec 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions tests/interface/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,11 +483,10 @@ def test_Window_connect_zoom():
w._zoom_out = mock.MagicMock()
w._zoom_out.connect = mock.MagicMock()
widget = mock.MagicMock()
widget.zoomIn = mock.MagicMock()
widget.zoomOut = mock.MagicMock()
widget.set_zoom = mock.MagicMock()
w.connect_zoom(widget)
assert w._zoom_in.connect.called_once_with(widget.zoomIn)
assert w._zoom_out.connect.called_once_with(widget.zoomOut)
w._zoom_in.connect.assert_called_once_with(widget.set_zoom)
w._zoom_out.connect.assert_called_once_with(widget.set_zoom)


def test_Window_current_tab():
Expand Down
Loading