diff --git a/tests/unit/test_repo.py b/tests/unit/test_repo.py index a5f723415..2d5a609ab 100644 --- a/tests/unit/test_repo.py +++ b/tests/unit/test_repo.py @@ -247,6 +247,8 @@ def test_ssh_copy_to_clipboard_action(qapp, qtbot, mocker, tmpdir): qtbot.waitUntil(lambda: ssh_dialog.errors.text().startswith('New key was copied'), **pytest._wait_defaults) cancel_button = ssh_dialog.buttonBox.button(QDialogButtonBox.StandardButton.Cancel) qtbot.mouseClick(cancel_button, QtCore.Qt.MouseButton.LeftButton) + assert len(ssh_dir.listdir()) == 2 + assert tab.sshComboBox.count() > 1 # no ssh key selected to copy assert tab.sshComboBox.currentIndex() == 0