-
Notifications
You must be signed in to change notification settings - Fork 140
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
PR: Complete Unit Test cleanup/parametrization/coverage increases #1787
Conversation
src/vorta/views/repo_tab.py
Outdated
@@ -198,8 +198,7 @@ def create_ssh_key(self): | |||
ssh_add_window = SSHAddWindow() | |||
self._window = ssh_add_window # For tests | |||
ssh_add_window.setParent(self, QtCore.Qt.WindowType.Sheet) | |||
ssh_add_window.accepted.connect(self.init_ssh) | |||
# ssh_add_window.rejected.connect(lambda: self.sshComboBox.setCurrentIndex(0)) | |||
ssh_add_window.rejected.connect(self.init_ssh) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes a bug I found during testing. Before, the SSH Key selector was not repopulating with new keys until Vorta was restarted. Now, it will repopulate whenever the user closes ssh_add_window
@m3nu @real-yfprojects with these additional tests, coverage now sits at 80% 🎉 Marking as ready for review 👍
|
Description
Putting the finishing touches on the unit test folder. Some remaining code cleanup, parametrization, and additional tests where needed.
Related Issue
#1754
Motivation and Context
One of my Google Summer of Code projects involves cleaning up the Vorta tests, reducing duplicated code, and increasing code coverage.
How Has This Been Tested?
Locally, and passes the automated Github test workflow.
Types of changes
Checklist:
I provide my contribution under the terms of the license of this repository and I affirm the Developer Certificate of Origin.