Skip to content

Commit

Permalink
add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
hua7450 authored Dec 5, 2024
1 parent 58aed6a commit 02713d7
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ metadata:
period: year
label: Dependent children education expense per child
reference:
# The number, $189.58,comes from line 28 of the form, multiply by 12 and get the annual amount.
# The number $189.58 comes from line 28 of the form, multiply it by 12 and get the annual amount.
- title: Official Form 122A-2 Chapter 7 Means Test Calculation
href: https://www.cacb.uscourts.gov/sites/cacb/files/documents/forms/122A2.pdf#page=6
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
- name: Orange county belongs to Los Angeles by MSA.
period: 2024
input:
state_code_str: CA
county_str: ORANGE_COUNTY_CA
output:
west_county: LOS_ANGELES

- name: Kern county belongs to default west.
period: 2024
input:
state_code_str: CA
county_str: KERN_COUNTY_CA
output:
west_county: WEST_DEFAULT

- name: Not part of any west region.
period: 2024
input:
state_code_str: MA
county_str: SUFFOLK_COUNTY_MA
output:
west_county: Null

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


class chapter_7_bankruptcy_additonal_expenses_deductions(Variable):
value_type = bool
value_type = float
entity = SPMUnit
label = "Additional expenses deductions"
definition_period = MONTH
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


class chapter_7_bankruptcy_debt_payment_deductions(Variable):
value_type = bool
value_type = float
entity = SPMUnit
label = "Debt payment deduction"
definition_period = MONTH
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


class chapter_7_bankruptcy_food_clothing_and_others_deduction(Variable):
value_type = bool
value_type = float
entity = SPMUnit
label = "National standards of food, clothing and other items deduction"
definition_period = MONTH
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


class chapter_7_bankruptcy_local_standards_deductions(Variable):
value_type = bool
value_type = float
entity = SPMUnit
label = "Local standards deduction"
definition_period = MONTH
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


class chapter_7_bankruptcy_other_necessary_expenses_deductions(Variable):
value_type = bool
value_type = float
entity = SPMUnit
label = "Other necessary expenses deduction"
definition_period = MONTH
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ from policyengine_us.model_api import *


class chapter_7_bankruptcy_out_of_pocket_health_care_deduction(Variable):
value_type = bool
value_type = float
entity = SPMUnit
label = "National standard of Out-of-pocket health care deduction"
definition_period = MONTH
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ class chapter_7_bankruptcy_total_deductions(Variable):
value_type = float
entity = SPMUnit
label = "Total deductions from Income"
unit = USD
definition_period = YEAR
definition_period = MONTH

adds = [
"chapter_7_bankruptcy_food_clothing_and_others_deduction",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


class chapter_7_bankruptcy_vehicle_operation_expense_deduction(Variable):
value_type = bool
value_type = float
entity = SPMUnit
label = "Vehicle operation expense deduction"
definition_period = MONTH
Expand Down

0 comments on commit 02713d7

Please sign in to comment.