Skip to content

Commit 1ec4ce0

Browse files
authored
Merge pull request #1452 from PolicyEngine/feat/update-amplifi-tests
Rename benefits_navigator test household to amplifi
2 parents 2c0f74e + 94a6999 commit 1ec4ce0

9 files changed

Lines changed: 236 additions & 96 deletions

File tree

changelog_entry.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- bump: patch
2+
changes:
3+
changed:
4+
- Renamed benefits_navigator test household to amplifi with updated household data

policyengine_household_api/models/household.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from typing import Union, Optional, Any
33
from enum import Enum
44

5-
65
example_household_us = {
76
"people": {
87
"you": {"age": {"2024": 40}, "employment_income": {"2024": 29000}},
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from .my_friend_ben import my_friend_ben_household
2-
from .benefits_navigator import benefits_navigator_household
2+
from .amplifi import amplifi_household
33
from .impactica import impactica_household
Lines changed: 228 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,228 @@
1+
amplifi_household = {
2+
"people": {
3+
"2021359": {
4+
"age": {
5+
"2024": 49,
6+
"2025": 49,
7+
},
8+
"is_pregnant": {
9+
"2025": True,
10+
},
11+
"ssi_countable_resources": {
12+
"2025": 200,
13+
},
14+
"is_disabled": {
15+
"2025": False,
16+
},
17+
"employment_income": {
18+
"2024": 0,
19+
"2025": 0,
20+
},
21+
"self_employment_income": {
22+
"2024": 0,
23+
"2025": 0,
24+
},
25+
"rental_income": {
26+
"2024": 0,
27+
"2025": 0,
28+
},
29+
"taxable_pension_income": {
30+
"2024": 0,
31+
"2025": 0,
32+
},
33+
"social_security": {
34+
"2024": 0,
35+
"2025": 0,
36+
},
37+
"unemployment_compensation": {
38+
"2024": 0,
39+
"2025": 0,
40+
},
41+
"capital_gains": {
42+
"2024": 0,
43+
"2025": 0,
44+
},
45+
"taxable_ira_distributions": {
46+
"2024": 0,
47+
"2025": 0,
48+
},
49+
"medicaid": {
50+
"2025": None,
51+
},
52+
"medicaid_category": {
53+
"2025": None,
54+
},
55+
"is_optional_senior_or_disabled_for_medicaid": {
56+
"2025": None,
57+
},
58+
"ssi_reported": {
59+
"2025": 0,
60+
},
61+
"is_blind": {
62+
"2025": False,
63+
},
64+
"ssi_earned_income": {
65+
"2025": 0,
66+
},
67+
"ssi_unearned_income": {
68+
"2025": 0,
69+
},
70+
"is_tax_unit_spouse": {
71+
"2024": False,
72+
"2025": False,
73+
},
74+
"is_tax_unit_head": {
75+
"2025": True,
76+
},
77+
"is_tax_unit_dependent": {
78+
"2024": False,
79+
"2025": False,
80+
},
81+
"co_state_supplement": {
82+
"2025": None,
83+
},
84+
"co_oap": {
85+
"2025": None,
86+
},
87+
"current_pregnancies": {
88+
"2025": 1,
89+
},
90+
"co_chp_eligible": {
91+
"2025": None,
92+
},
93+
"co_family_affordability_credit": {
94+
"2024": None,
95+
},
96+
"wic": {
97+
"2025": None,
98+
},
99+
"wic_category": {
100+
"2025": None,
101+
},
102+
"commodity_supplemental_food_program": {
103+
"2025": None,
104+
},
105+
"ssi": {
106+
"2025": None,
107+
},
108+
"child_support_expense": {
109+
"2025": 0,
110+
},
111+
"real_estate_taxes": {
112+
"2025": 0,
113+
},
114+
"medical_out_of_pocket_expenses": {
115+
"2025": 0,
116+
},
117+
"is_snap_ineligible_student": {
118+
"2025": True,
119+
},
120+
"is_full_time_college_student": {
121+
"2025": True,
122+
},
123+
}
124+
},
125+
"tax_units": {
126+
"main_tax_unit": {
127+
"members": ["2021359"],
128+
"co_eitc": {
129+
"2024": None,
130+
},
131+
"co_ctc": {
132+
"2024": None,
133+
},
134+
"eitc": {
135+
"2024": None,
136+
},
137+
"ctc_value": {
138+
"2024": None,
139+
},
140+
}
141+
},
142+
"families": {
143+
"family": {
144+
"members": ["2021359"],
145+
}
146+
},
147+
"households": {
148+
"household": {
149+
"members": ["2021359"],
150+
"state_code": {
151+
"2024": "CO",
152+
"2025": "CO",
153+
},
154+
}
155+
},
156+
"spm_units": {
157+
"spm_unit": {
158+
"members": ["2021359"],
159+
"school_meal_countable_income": {
160+
"2025": 0,
161+
},
162+
"snap_unearned_income": {
163+
"2025": 0,
164+
},
165+
"snap_earned_income": {
166+
"2025": 0,
167+
},
168+
"snap_assets": {
169+
"2025": 200,
170+
},
171+
"snap_emergency_allotment": {
172+
"2025": 0,
173+
},
174+
"housing_cost": {
175+
"2025": 0,
176+
},
177+
"has_phone_expense": {
178+
"2025": False,
179+
},
180+
"has_heating_cooling_expense": {
181+
"2025": False,
182+
},
183+
"heating_cooling_expense": {
184+
"2025": 0,
185+
},
186+
"spm_unit_pre_subsidy_childcare_expenses": {
187+
"2025": 0,
188+
},
189+
"water_expense": {
190+
"2025": 0,
191+
},
192+
"phone_expense": {
193+
"2025": 0,
194+
},
195+
"homeowners_association_fees": {
196+
"2025": 0,
197+
},
198+
"homeowners_insurance": {
199+
"2025": 0,
200+
},
201+
"snap": {
202+
"2025-01": None,
203+
},
204+
"co_tanf_countable_gross_earned_income": {
205+
"2025": 0,
206+
},
207+
"co_tanf_countable_gross_unearned_income": {
208+
"2025": 0,
209+
},
210+
"co_tanf": {
211+
"2025": None,
212+
},
213+
"broadband_cost": {
214+
"2025": 500,
215+
},
216+
"lifeline": {
217+
"2025": None,
218+
},
219+
"school_meal_daily_subsidy": {
220+
"2025": None,
221+
},
222+
"school_meal_tier": {
223+
"2025": None,
224+
},
225+
}
226+
},
227+
"marital_units": {},
228+
}

tests/data/customer_households/benefits_navigator.py

Lines changed: 0 additions & 88 deletions
This file was deleted.

tests/fixtures/decorators/analytics.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from datetime import datetime
88
import jwt
99

10-
1110
# Mock request data
1211
MOCK_JWT_TOKEN = "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ0ZXN0LWNsaWVudEBjbGllbnRzIiwiZXhwIjoxNjQwOTk1MjAwfQ.test"
1312
MOCK_CLIENT_ID = "test-client"

tests/fixtures/decorators/auth.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from unittest.mock import Mock, patch, MagicMock
77
from typing import Dict, Any
88

9-
109
# Sample Auth0 configuration data
1110
AUTH0_CONFIG_DATA = {
1211
"address": "test-tenant.auth0.com",

tests/fixtures/utils/config_loader.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from typing import Dict, Any
1010
import pytest
1111

12-
1312
# Sample configuration data constants
1413
DEFAULT_CONFIG_DATA = {
1514
"app": {

tests/integration_with_auth/test_customer_inputs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from typing import Any, List, Tuple
66
from tests.data.customer_households import (
77
my_friend_ben_household,
8-
benefits_navigator_household,
8+
amplifi_household,
99
impactica_household,
1010
)
1111
from policyengine_household_api.models.household import HouseholdModelUS
@@ -31,10 +31,10 @@ def test_my_friend_ben(self, client, household):
3131
@pytest.mark.parametrize(
3232
"household",
3333
[
34-
benefits_navigator_household,
34+
amplifi_household,
3535
],
3636
)
37-
def test_benefits_navigator(self, client, household):
37+
def test_amplifi(self, client, household):
3838
self.us_household_runner(client, household)
3939

4040
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)