Skip to content

Add new qapp_cls fixture #418

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

Merged
merged 1 commit into from
Apr 30, 2022
Merged

Add new qapp_cls fixture #418

merged 1 commit into from
Apr 30, 2022

Conversation

The-Compiler
Copy link
Member

@The-Compiler The-Compiler commented Apr 28, 2022

This allows to override the QApplication class to use without breaking existing functionality of the qapp fixture.

Currently, if someone follows the doc, things like qapp_args or the qt_qapp_name setting break.

Also add a few more tests around qapp handling and reuse.

nicoddemus
nicoddemus previously approved these changes Apr 28, 2022
Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

This allows to override the QApplication class to use without breaking existing functionality of the qapp fixture.
@The-Compiler
Copy link
Member Author

Rebased on master with no changes, so CI will hopefully pass now!

@The-Compiler The-Compiler merged commit b3fb5ee into pytest-dev:master Apr 30, 2022
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