Skip to content

Commit

Permalink
adding more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vrathi101 committed Oct 22, 2024
1 parent ada24f9 commit 2c35ae7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,25 @@
output:
is_medicaid_eligible: false

- name: Eligible via medicaid eligibility and immigration eligibility
period: 2022
input:
medicaid_category: YOUNG_ADULT
immigration_status: LEGAL_PERMANENT_RESIDENT
ca_ffyp_eligible: false
output:
is_medicaid_eligible: true


- name: Ineligible because not ca ffyp eligible and not both medicaid eligible and immigration eligible
period: 2022
input:
medicaid_category: YOUNG_ADULT
immigration_status: UNDOCUMENTED
ca_ffyp_eligible: false
output:
is_medicaid_eligible: true

- name: Eligible via California FFYP program
period: 2022
input:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class ca_ffyp_eligible(Variable):
def formula(person, period, parameters):
p = parameters(period).gov.states.ca.dhcs.ffyp
age = person("age", period)
age_eligible = (
age > p.foster_care_age_minimum and age < p.age_threshold
age_eligible = (age > p.foster_care_age_minimum) & (
age < p.age_threshold
) # Person must be below age limit and previously in foster care for a valid age
was_in_foster_care = person(
"was_in_foster_care", period
Expand Down

0 comments on commit 2c35ae7

Please sign in to comment.