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: Use syrupy for snapshots #22

Merged
merged 1 commit into from
Feb 11, 2025
Merged

test: Use syrupy for snapshots #22

merged 1 commit into from
Feb 11, 2025

Conversation

sloria
Copy link
Contributor

@sloria sloria commented Feb 11, 2025

Use syrupy and its built-in PNG extension for generating snapshots

To regen snapshots

pytest --snapshot-update

Also adds some pytest fixtures to set the groundwork for future tests that render widgets to PNGs.

@sloria sloria changed the title Use syrupy for snapshots test: Use syrupy for snapshots Feb 11, 2025
Copy link
Owner

@tmcw tmcw left a comment

Choose a reason for hiding this comment

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

Whew, this is amazing!

@tmcw tmcw merged commit 1a463fb into tmcw:main Feb 11, 2025
1 check passed
@sloria sloria deleted the syrupy branch February 11, 2025 18:58
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