test: add unit tests for postprocess blending functions#422
Merged
dreamlessx merged 1 commit intodreamlessx:mainfrom Mar 21, 2026
Merged
test: add unit tests for postprocess blending functions#422dreamlessx merged 1 commit intodreamlessx:mainfrom
dreamlessx merged 1 commit intodreamlessx:mainfrom
Conversation
Closes dreamlessx#414 Added 4 new tests for issue dreamlessx#414: 1. test_laplacian_blend_identity - blending image with itself 2. test_laplacian_blend_shapes - various resolutions (64x64 to 1024x768) 3. test_feathered_mask_range - output stays in [0, 255] 4. test_histogram_match_preserves_structure - SSIM correlation > 0.85 All tests use synthetic numpy arrays, no GPU or model weights needed.
Owner
|
Welcome @wangwangbobo! Great first contribution — these 4 tests directly address #414 and are well-structured:
CI needs to run — I'll approve the workflow. Once it passes, this is ready to merge. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
dreamlessx
added a commit
that referenced
this pull request
Mar 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #414
Added 4 new tests for issue #414:
All tests use synthetic numpy arrays — no GPU or model weights needed.