Skip to content

test: cover transform-time input guards - #42

Merged
shivamlalakiya merged 4 commits into
PhilanthroPy-Project:mainfrom
slegarraga:test/transform-guards
Aug 7, 2026
Merged

test: cover transform-time input guards#42
shivamlalakiya merged 4 commits into
PhilanthroPy-Project:mainfrom
slegarraga:test/transform-guards

Conversation

@slegarraga

Copy link
Copy Markdown
Contributor

Closes #23.

Adds the two missing transform-time guard tests:

  • MatchingGiftFeaturizer.transform rejects non-DataFrame input.
  • ShareOfWalletScorer.transform rejects an out-of-range capacity_col_idx.

Verified: pytest tests/test_matching_gift.py tests/test_share_of_wallet.py -q -o addopts='' passes (55 tests). Local coverage runs hit a numpy import conflict in this environment; CI coverage should cover the new lines.

@shivamlalakiya
shivamlalakiya merged commit 6c5b26c into PhilanthroPy-Project:main Aug 7, 2026
14 checks passed
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.

Cover the two documented transform-time guards that no test exercises (MatchingGiftFeaturizer, ShareOfWalletScorer)

2 participants