Skip to content

Commit

Permalink
Fix mocking
Browse files Browse the repository at this point in the history
  • Loading branch information
legoktm committed Dec 13, 2023
1 parent a57709d commit cbe698b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/tests/functional/test_export_file_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def _setup_export(functional_test_logged_in_context, qtbot, mocker, mock_export_
Helper. Set up export test context and return reference to export dialog.
"""
mocker.patch(
"securedrop_client.gui.widgets.export.getService", return_value=mock_export_service
"securedrop_client.export.getService", return_value=mock_export_service
)

gui, controller = functional_test_logged_in_context
Expand Down Expand Up @@ -80,7 +80,7 @@ def test_export_file_dialog(functional_test_logged_in_context, qtbot, mocker, mo
the export dialog's continue button is "DONE".
"""
mocker.patch(
"securedrop_client.gui.widgets.export.getService", return_value=mock_export_service
"securedrop_client.export.getService", return_value=mock_export_service
)

gui, controller = functional_test_logged_in_context
Expand Down

0 comments on commit cbe698b

Please sign in to comment.