Skip to content

Use WIC pregnancy count in family size - #8433

Merged
MaxGhenis merged 1 commit into
mainfrom
wic-pregnancy-count
Jun 8, 2026
Merged

Use WIC pregnancy count in family size#8433
MaxGhenis merged 1 commit into
mainfrom
wic-pregnancy-count

Conversation

@MaxGhenis

Copy link
Copy Markdown
Contributor

Summary

  • use summed current_pregnancies instead of a boolean pregnancy flag for WIC family-size adjustments
  • preserve the is_pregnant-only path because current_pregnancies defaults from is_pregnant
  • add WIC FPG and income-limit regression tests for twin pregnancy

Fixes #8186.

Tests

  • uv run python -m policyengine_core.scripts.policyengine_command test policyengine_us/tests/policy/baseline/gov/usda/wic/wic_fpg.yaml policyengine_us/tests/policy/baseline/gov/usda/wic/wic_income_limit.yaml -c policyengine_us
  • uv run ruff check policyengine_us/variables/gov/usda/wic/wic_fpg.py policyengine_us/variables/gov/usda/wic/wic_income_limit.py
  • git diff --check

@codecov

codecov Bot commented May 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (bd1ae42) to head (534cf7b).
⚠️ Report is 18 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##             main     #8433       +/-   ##
============================================
+ Coverage   77.77%   100.00%   +22.22%     
============================================
  Files           1         2        +1     
  Lines           9        41       +32     
============================================
+ Hits            7        41       +34     
+ Misses          2         0        -2     
Flag Coverage Δ
unittests 100.00% <100.00%> (+22.22%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@MaxGhenis
MaxGhenis marked this pull request as draft May 24, 2026 20:19
@MaxGhenis
MaxGhenis force-pushed the wic-pregnancy-count branch from 597db48 to 048727a Compare June 8, 2026 04:55
@MaxGhenis
MaxGhenis force-pushed the wic-pregnancy-count branch from 048727a to 534cf7b Compare June 8, 2026 05:02
@MaxGhenis
MaxGhenis marked this pull request as ready for review June 8, 2026 05:04
@MaxGhenis
MaxGhenis merged commit 28610a8 into main Jun 8, 2026
26 checks passed
@MaxGhenis
MaxGhenis deleted the wic-pregnancy-count branch June 8, 2026 05:46
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.

Model WIC pregnancy adjustment by fetus count

1 participant