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

test: print to pdf: convert to PNG and compare to golden #914

Merged
merged 6 commits into from
Jun 29, 2023

Conversation

thiagowfx
Copy link
Contributor

@thiagowfx thiagowfx commented Jun 28, 2023

This is a better approach than #912.

Tracking

  • distinguish headless x headful

Bug: #518

@thiagowfx thiagowfx changed the title Thiagowfx/print test: print to pdf: convert to PNG and compare to golden Jun 28, 2023
@thiagowfx thiagowfx force-pushed the thiagowfx/print branch 2 times, most recently from 7190afa to 653bdb8 Compare June 28, 2023 19:34
@thiagowfx
Copy link
Contributor Author

This approach works well. We just need to find a way to distinguish headless from headful in pytest, so that we can check for an exception in the headless case.

@thiagowfx
Copy link
Contributor Author

Actually, I thought of a workaround:

We could always try/catch, for the sake of silencing the error in headless.

It's not very elegant, but it would work for the purposes of this test.

@thiagowfx thiagowfx marked this pull request as ready for review June 28, 2023 20:05
@thiagowfx thiagowfx enabled auto-merge (squash) June 28, 2023 20:07
@thiagowfx thiagowfx disabled auto-merge June 28, 2023 20:08
@thiagowfx thiagowfx enabled auto-merge (squash) June 28, 2023 20:08
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