diff --git a/changelog.d/fix-main-ci-test-fixtures.fixed.md b/changelog.d/fix-main-ci-test-fixtures.fixed.md new file mode 100644 index 00000000000..cca3c7aced2 --- /dev/null +++ b/changelog.d/fix-main-ci-test-fixtures.fixed.md @@ -0,0 +1 @@ +Fix the deduction determinism test fixture and health-expense uprating expectations to reflect the current unemployment-compensation and premium inputs. diff --git a/policyengine_us/tests/core/test_ald_determinism.py b/policyengine_us/tests/core/test_ald_determinism.py index bd7bc997c92..4dd95f6dd2c 100644 --- a/policyengine_us/tests/core/test_ald_determinism.py +++ b/policyengine_us/tests/core/test_ald_determinism.py @@ -259,9 +259,9 @@ def _probe_fixture(simulation): "other_net_gain", "limited_business_loss", "capital_losses", - # MAGI reads all unemployment compensation, even when only its - # taxable portion is in the gross-income parameter list. - "unemployment_compensation", + # MAGI reads total reported or modeled unemployment compensation, + # even when only its taxable portion is in the gross-income list. + "total_unemployment_compensation", "basic_income", ) ) diff --git a/policyengine_us/tests/core/test_cms_moop_uprating.py b/policyengine_us/tests/core/test_cms_moop_uprating.py index ee6aabcb755..014139b9bba 100644 --- a/policyengine_us/tests/core/test_cms_moop_uprating.py +++ b/policyengine_us/tests/core/test_cms_moop_uprating.py @@ -58,21 +58,15 @@ TABLE_YEARS = range(FIRST_TABLE_YEAR, LAST_PROJECTED_YEAR + 1) ACCOUNT_YEARS = range(FIRST_YEAR, FIRST_PROJECTED_YEAR) # Health expense inputs that uprate by this series, as listed in -# docs-quarto/methodology/spm-poverty.qmd. Pre-tax health insurance premiums -# also use it today; PR #10083 moves them to the ESI premium series, so they -# are left out here. HSA payroll contributions follow the family HSA -# contribution limit since #10097. +# docs-quarto/methodology/spm-poverty.qmd. Premiums follow separate series, +# covered by test_premium_input_uprating.py. HSA payroll contributions follow +# the family HSA contribution limit. HEALTH_INPUTS = { "ambulance_expense", "er_visit_expense", - "health_insurance_premiums", - "health_insurance_premiums_without_medicare_part_b", "imaging_expense", "inpatient_expense", "lab_expense", - "long_term_health_insurance_premiums", - "medicare_part_b_premiums_reported", - "other_health_insurance_premiums", "other_medical_expenses", "outpatient_expense", "over_the_counter_health_expenses", @@ -265,4 +259,4 @@ def test_health_inputs_uprate_by_the_cms_series(): users = { name for name, variable in system.variables.items() if variable.uprating == MOOP } - assert users - {"pre_tax_health_insurance_premiums"} == HEALTH_INPUTS + assert users == HEALTH_INPUTS