Skip to content

Commit 6e1c266

Browse files
hua7450claude
andcommitted
Fix Wisconsin TANF tests and clean up references
- Update all test periods from 2024 to 2025 to match parameter effective dates - Fix wi_tanf_countable_resources to properly separate vehicle and non-vehicle assets - Fix wi_tanf_countable_income entity aggregation for EITC - Delete working_references.md (all citations now embedded in code metadata) All 44 tests now pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 3f07aa0 commit 6e1c266

File tree

10 files changed

+105
-622
lines changed

10 files changed

+105
-622
lines changed

policyengine_us/tests/policy/baseline/gov/states/wi/dcf/tanf/integration.yaml

Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
- name: Single parent with one child - income below limit - eligible for $653/month
2-
period: 2024
2+
period: 2025
33
input:
44
people:
55
parent:
66
age: 30
7-
employment_income: 15_000
7+
employment_income_before_lsr: 15_000
88
child_support_received: 3_000 # Fully disregarded
99
child1:
1010
age: 5
1111
spm_units:
1212
spm_unit:
1313
members: [parent, child1]
14+
spm_unit_cash_assets: 1_500
1415
households:
1516
household:
1617
members: [parent, child1]
1718
state_code: WI
18-
net_worth: 1_500
1919
household_vehicles_value: 8_000 # Under $10,000 exclusion
2020
output:
2121
# Income eligibility
@@ -31,13 +31,12 @@
3131
wi_tanf: 7_836 # $653/month * 12 = $7,836/year
3232

3333
- name: Family of four - income at limit boundary - eligible
34-
period: 2024
34+
period: 2025
3535
input:
3636
people:
3737
parent:
3838
age: 28
39-
employment_income: 30_000
40-
eitc: 2_500 # Fully disregarded
39+
employment_income_before_lsr: 30_000
4140
child_support_received: 4_472 # Fully disregarded
4241
child1:
4342
age: 7
@@ -48,11 +47,11 @@
4847
spm_units:
4948
spm_unit:
5049
members: [parent, child1, child2, child3]
50+
spm_unit_cash_assets: 800
5151
households:
5252
household:
5353
members: [parent, child1, child2, child3]
5454
state_code: WI
55-
net_worth: 800
5655
household_vehicles_value: 5_000 # Under $10,000 exclusion
5756
output:
5857
# Income eligibility
@@ -68,12 +67,12 @@
6867
wi_tanf: 7_836 # $653/month * 12
6968

7069
- name: Single parent with two children - income just over limit - ineligible
71-
period: 2024
70+
period: 2025
7271
input:
7372
people:
7473
parent:
7574
age: 32
76-
employment_income: 32_000
75+
employment_income_before_lsr: 32_000
7776
social_security: 6_000 # Counted as unearned income
7877
child1:
7978
age: 4
@@ -82,11 +81,11 @@
8281
spm_units:
8382
spm_unit:
8483
members: [parent, child1, child2]
84+
spm_unit_cash_assets: 1_200
8585
households:
8686
household:
8787
members: [parent, child1, child2]
8888
state_code: WI
89-
net_worth: 1_200
9089
household_vehicles_value: 3_000
9190
output:
9291
# Income eligibility
@@ -102,22 +101,22 @@
102101
wi_tanf: 0
103102

104103
- name: Single parent - resources over limit - ineligible
105-
period: 2024
104+
period: 2025
106105
input:
107106
people:
108107
parent:
109108
age: 27
110-
employment_income: 12_000
109+
employment_income_before_lsr: 12_000
111110
child1:
112111
age: 6
113112
spm_units:
114113
spm_unit:
115114
members: [parent, child1]
115+
spm_unit_cash_assets: 1_000
116116
households:
117117
household:
118118
members: [parent, child1]
119119
state_code: WI
120-
net_worth: 1_000
121120
household_vehicles_value: 14_000 # $4,000 over $10,000 exclusion
122121
output:
123122
# Income eligibility
@@ -133,28 +132,27 @@
133132
wi_tanf: 0
134133

135134
- name: Family with mixed income sources - extensive disregards applied
136-
period: 2024
135+
period: 2025
137136
input:
138137
people:
139138
parent:
140139
age: 29
141-
employment_income: 14_000
142-
self_employment_income: 8_000
140+
employment_income_before_lsr: 14_000
141+
self_employment_income_before_lsr: 8_000
143142
child_support_received: 6_000 # Disregarded
144-
eitc: 3_200 # Disregarded
145143
child1:
146144
age: 8
147-
employment_income: 2_000 # Dependent child income - disregarded
145+
employment_income_before_lsr: 2_000 # Dependent child income - disregarded
148146
child2:
149147
age: 10
150148
spm_units:
151149
spm_unit:
152150
members: [parent, child1, child2]
151+
spm_unit_cash_assets: 2_400
153152
households:
154153
household:
155154
members: [parent, child1, child2]
156155
state_code: WI
157-
net_worth: 2_400
158156
household_vehicles_value: 9_500
159157
output:
160158
# Income eligibility (child income and disregards excluded)
@@ -170,15 +168,15 @@
170168
wi_tanf: 7_836 # $653/month * 12
171169

172170
- name: Large family (6 people) - testing incremental income limit
173-
period: 2024
171+
period: 2025
174172
input:
175173
people:
176174
parent1:
177175
age: 35
178-
employment_income: 35_000
176+
employment_income_before_lsr: 35_000
179177
parent2:
180178
age: 33
181-
employment_income: 10_000
179+
employment_income_before_lsr: 10_000
182180
child1:
183181
age: 12
184182
child2:
@@ -190,11 +188,11 @@
190188
spm_units:
191189
spm_unit:
192190
members: [parent1, parent2, child1, child2, child3, child4]
191+
spm_unit_cash_assets: 500
193192
households:
194193
household:
195194
members: [parent1, parent2, child1, child2, child3, child4]
196195
state_code: WI
197-
net_worth: 500
198196
household_vehicles_value: 7_000
199197
output:
200198
# Income eligibility
@@ -210,22 +208,22 @@
210208
wi_tanf: 7_836 # $653/month * 12
211209

212210
- name: Edge case - income exactly at limit, resources exactly at limit
213-
period: 2024
211+
period: 2025
214212
input:
215213
people:
216214
parent:
217215
age: 31
218-
employment_income: 18_000
216+
employment_income_before_lsr: 18_000
219217
child1:
220218
age: 3
221219
spm_units:
222220
spm_unit:
223221
members: [parent, child1]
222+
spm_unit_cash_assets: 2_500
224223
households:
225224
household:
226225
members: [parent, child1]
227226
state_code: WI
228-
net_worth: 2_500
229227
household_vehicles_value: 10_000
230228
output:
231229
# Income eligibility

policyengine_us/tests/policy/baseline/gov/states/wi/dcf/tanf/wi_tanf.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
- name: Eligible household receives $653/month CSJ payment
2-
period: 2024
2+
period: 2025
33
input:
44
state_code: WI
55
wi_tanf_eligible: true
66
output:
77
wi_tanf: 7_836 # $653 * 12 months
88

99
- name: Ineligible household receives $0
10-
period: 2024
10+
period: 2025
1111
input:
1212
state_code: WI
1313
wi_tanf_eligible: false
1414
output:
1515
wi_tanf: 0
1616

1717
- name: Only calculate for Wisconsin
18-
period: 2024
18+
period: 2025
1919
input:
2020
state_code: CA
2121
wi_tanf_eligible: true
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
11
- name: Employment income is fully counted
2-
period: 2024
2+
period: 2025
33
input:
44
state_code: WI
5-
employment_income: 20_000
5+
employment_income_before_lsr: 20_000
66
output:
77
wi_tanf_countable_income: 20_000
88

99
- name: Child support is fully disregarded
10-
period: 2024
10+
period: 2025
1111
input:
1212
state_code: WI
13-
employment_income: 15_000
13+
employment_income_before_lsr: 15_000
1414
child_support_received: 5_000
1515
output:
1616
wi_tanf_countable_income: 15_000
1717

1818
- name: EITC is fully disregarded
19-
period: 2024
19+
period: 2025
2020
input:
2121
state_code: WI
22-
employment_income: 15_000
22+
employment_income_before_lsr: 15_000
2323
eitc: 3_000
2424
output:
2525
wi_tanf_countable_income: 15_000
2626

2727
- name: Social Security income is counted
28-
period: 2024
28+
period: 2025
2929
input:
3030
state_code: WI
31-
employment_income: 10_000
31+
employment_income_before_lsr: 10_000
3232
social_security: 8_000
3333
output:
3434
wi_tanf_countable_income: 18_000
3535

3636
- name: Multiple income sources with disregards
37-
period: 2024
37+
period: 2025
3838
input:
3939
state_code: WI
40-
employment_income: 12_000
40+
employment_income_before_lsr: 12_000
4141
child_support_received: 4_000
4242
eitc: 2_000
4343
social_security: 6_000
4444
output:
4545
wi_tanf_countable_income: 18_000 # Employment + Social Security only
4646

4747
- name: Self-employment income is counted (gross receipts)
48-
period: 2024
48+
period: 2025
4949
input:
5050
state_code: WI
51-
self_employment_income: 15_000
51+
self_employment_income_before_lsr: 15_000
5252
output:
5353
wi_tanf_countable_income: 15_000
5454

5555
- name: Only calculate for Wisconsin
56-
period: 2024
56+
period: 2025
5757
input:
5858
state_code: CA
59-
employment_income: 20_000
59+
employment_income_before_lsr: 20_000
6060
output:
6161
wi_tanf_countable_income: 0

policyengine_us/tests/policy/baseline/gov/states/wi/dcf/tanf/wi_tanf_eligible.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
- name: All eligibility criteria met - eligible
2-
period: 2024
2+
period: 2025
33
input:
44
state_code: WI
55
is_demographic_tanf_eligible: true
@@ -9,7 +9,7 @@
99
wi_tanf_eligible: true
1010

1111
- name: Demographic ineligible - ineligible
12-
period: 2024
12+
period: 2025
1313
input:
1414
state_code: WI
1515
is_demographic_tanf_eligible: false
@@ -19,7 +19,7 @@
1919
wi_tanf_eligible: false
2020

2121
- name: Income ineligible - ineligible
22-
period: 2024
22+
period: 2025
2323
input:
2424
state_code: WI
2525
is_demographic_tanf_eligible: true
@@ -29,7 +29,7 @@
2929
wi_tanf_eligible: false
3030

3131
- name: Resources ineligible - ineligible
32-
period: 2024
32+
period: 2025
3333
input:
3434
state_code: WI
3535
is_demographic_tanf_eligible: true
@@ -39,7 +39,7 @@
3939
wi_tanf_eligible: false
4040

4141
- name: All criteria failed - ineligible
42-
period: 2024
42+
period: 2025
4343
input:
4444
state_code: WI
4545
is_demographic_tanf_eligible: false
@@ -49,7 +49,7 @@
4949
wi_tanf_eligible: false
5050

5151
- name: Only calculate for Wisconsin
52-
period: 2024
52+
period: 2025
5353
input:
5454
state_code: CA
5555
is_demographic_tanf_eligible: true

0 commit comments

Comments
 (0)