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

Adds more functional tests for the client #957

Merged
merged 3 commits into from
Mar 23, 2020

Conversation

kushaldas
Copy link
Contributor

@kushaldas kushaldas commented Mar 19, 2020

Description

Adds two new functional tests, one is for downloading a file.
And the second is for export dialog.

Test Plan

  • make test-functional

Checklist

If these changes modify code paths involving cryptography, the opening of files in VMs or network (via the RPC service) traffic, Qubes testing in the staging environment is required. For fine tuning of the graphical user interface, testing in any environment in Qubes is required. Please check as applicable:

  • I have tested these changes in the appropriate Qubes environment
  • I do not have an appropriate Qubes OS workstation set up (the reviewer will need to test these changes)
  • These changes should not need testing in Qubes

If these changes add or remove files other than client code, packaging logic (e.g., the AppArmor profile) may need to be updated. Please check as applicable:

  • I have submitted a separate PR to the packaging repo
  • No update to the packaging logic (e.g., AppArmor profile) is required for these changes
  • I don't know and would appreciate guidance

@kushaldas kushaldas force-pushed the behind_the_north_wall_of_funcational_tests branch from 4f2fb7a to a852d90 Compare March 23, 2020 12:59
@kushaldas kushaldas marked this pull request as ready for review March 23, 2020 13:47
sssoleileraaa
sssoleileraaa previously approved these changes Mar 23, 2020
Copy link
Contributor

@sssoleileraaa sssoleileraaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

dialog = ExportDialog(self.controller, self.uuid, self.file.filename)
dialog.exec()
self.export_dialog = ExportDialog(self.controller, self.uuid, self.file.filename)
self.export_dialog.show()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works fine since the dialogs make sure to not allow multiple dialogs at the same time.

This also modifies the export dialog excutation flow, by
using .show() method, thus avoiding an internal eventloop
from the previously used .exec_()
@sssoleileraaa sssoleileraaa force-pushed the behind_the_north_wall_of_funcational_tests branch from 9e504bc to 80cf783 Compare March 23, 2020 18:50
@sssoleileraaa sssoleileraaa self-requested a review March 23, 2020 19:03
@sssoleileraaa sssoleileraaa merged commit b33ea58 into master Mar 23, 2020
@sssoleileraaa sssoleileraaa deleted the behind_the_north_wall_of_funcational_tests branch March 23, 2020 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants