Skip to content

Commit

Permalink
debug -1 index issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtedde committed Aug 30, 2023
1 parent 21e2fbb commit bb2d874
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit/test_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,9 @@ def test_ssh_copy_to_clipboard_action(qapp, qtbot, mocker, tmpdir):
key_tmpfile_full = os.path.join(key_tmpfile.dirname, key_tmpfile.basename)
ssh_dialog.outputFileTextBox.setText(key_tmpfile_full)
ssh_dialog.generate_key()
qtbot.waitUntil(lambda: ssh_dialog.errors.text().startswith('New key was copied'), **pytest._wait_defaults)
assert len(ssh_dir.listdir()) == 2
assert tab.sshComboBox.count() > 1

# no ssh key selected to copy
assert tab.sshComboBox.currentIndex() == 0
Expand Down

0 comments on commit bb2d874

Please sign in to comment.