Skip to content

Test PyPNG output with a temporary file - #439

Open
omidalighadr wants to merge 1 commit into
lincolnloop:mainfrom
omidalighadr:test-pypng-real-output
Open

omidalighadr wants to merge 1 commit into
lincolnloop:mainfrom
omidalighadr:test-pypng-real-output

Conversation

@omidalighadr

Copy link
Copy Markdown

Use pytest’s tmp_path to exercise PyPNGImage.save() with a string filename. Compare the file bytes to the output written to BytesIO so the test verifies the saved PNG.

Closes #409.

Validation: python -m pytest -q on macOS with Python 3.12 — 97 passed, 1 skipped.

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.

Refactor tests to use Python's tempfile for managing QR Code output

1 participant