Skip to content

test: PlannedGivingIntentScorer.predict_intent_score never - #148

Open
Mr-Neutr0n wants to merge 1 commit into
PhilanthroPy-Project:mainfrom
Mr-Neutr0n:agent/issue-56-test-plannedgivinginte
Open

test: PlannedGivingIntentScorer.predict_intent_score never#148
Mr-Neutr0n wants to merge 1 commit into
PhilanthroPy-Project:mainfrom
Mr-Neutr0n:agent/issue-56-test-plannedgivinginte

Conversation

@Mr-Neutr0n

Copy link
Copy Markdown
Contributor

Fixes #56

Added test_predict_intent_score_single_class_returns_zeros to tests/test_planned_giving.py to cover the predict_intent_score branch that returns all zeros when predict_proba has fewer than two columns; no source changes. (The issue’s coverage command could not be run here because pytest-cov triggers a numpy import error in this environment; all 16 tests in the file pass without coverage.)

Local tests pass.


This change was prepared with AI assistance under human direction and review.

…_intent_score` never

Signed-off-by: Mr-Neutr0n <64578610+Mr-Neutr0n@users.noreply.github.com>
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.

test: PlannedGivingIntentScorer.predict_intent_score never exercises its single-class fallback

1 participant