Skip to content

Add unit tests for getMatchingParams with edge case handling#87

Merged
danielplohmann merged 3 commits into
danielplohmann:mainfrom
r0ny123:testing-improvement-getmatchingparams-error-path-1406466737370398203
May 22, 2026
Merged

Add unit tests for getMatchingParams with edge case handling#87
danielplohmann merged 3 commits into
danielplohmann:mainfrom
r0ny123:testing-improvement-getmatchingparams-error-path-1406466737370398203

Conversation

@r0ny123
Copy link
Copy Markdown
Contributor

@r0ny123 r0ny123 commented Apr 6, 2026

No description provided.

r0ny123 and others added 3 commits March 2, 2026 18:16
…/server/utils.py

- Add tests for happy paths with valid parameters (pichash_size, minhash_score, force_recalculation, sample_group_only, band_matches_required).
- Add tests for edge cases (negative values, values out of range).
- Add tests for the error path where an invalid parameter value (e.g., a non-integer string for integer parameters) is provided.
- Mock LOGGER.warning to verify it's called on error.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Refactor test_getMatchingParams_edge_cases to use parameterized test cases for better readability and maintainability.
@danielplohmann danielplohmann merged commit a03ceff into danielplohmann:main May 22, 2026
1 check passed
@r0ny123 r0ny123 deleted the testing-improvement-getmatchingparams-error-path-1406466737370398203 branch May 22, 2026 12:54
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