Skip to content

Add qtbot.screenshot #433

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
Jun 22, 2022
Merged

Add qtbot.screenshot #433

merged 1 commit into from
Jun 22, 2022

Conversation

The-Compiler
Copy link
Member

@The-Compiler The-Compiler commented Jun 20, 2022

I was debugging a test where qtbot.stop for some reason didn't show my windows (even if I called .show() on them). Thus, I added qtbot.screenshot() to debug that test failure, which revealed why the height of the widget wasn't what I expected:

screenshot_MessageView_before

screenshot_MessageView_after

I thought it's probably useful for others too 😉

@nicoddemus
Copy link
Member

Thanks!

@The-Compiler The-Compiler merged commit 406170f into pytest-dev:master Jun 22, 2022
@The-Compiler The-Compiler deleted the screenshot branch June 22, 2022 12:59
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