From 580c0ce9bb78fa01d72f93f3bc907ceaccb2a9d4 Mon Sep 17 00:00:00 2001 From: David Trimmer <178813244+DTrim99@users.noreply.github.com> Date: Thu, 3 Dec 2026 21:25:02 -0500 Subject: [PATCH] Publish the AOTC scale instead of the IRS PTC folder in the installed-folders test policyengine-us is deleting gov.irs.credits.premium_tax_credit, a leftover of IRS premium tax credit variables it removed earlier. Once a bundle update brings that in, selected_model raises LookupError for the missing folder. Use gov.irs.credits.education.american_opportunity_credit.amount as the US bracket scale instead; the UK triple lock folder still holds a null value. Fixes #4405 Co-Authored-By: Claude Opus 5.5 --- changelog.d/4405.changed.md | 1 + tests/integration/test_v2_catalog_installed_folders.py | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 changelog.d/4405.changed.md diff --git a/changelog.d/4405.changed.md b/changelog.d/4405.changed.md new file mode 100644 index 000000000..5fa1fc533 --- /dev/null +++ b/changelog.d/4405.changed.md @@ -0,0 +1 @@ +Test catalog publication of installed US bracket scales on the American Opportunity Credit schedule instead of the IRS premium tax credit phase-out folder, which policyengine-us is removing. diff --git a/tests/integration/test_v2_catalog_installed_folders.py b/tests/integration/test_v2_catalog_installed_folders.py index 1aaa5e537..189607ed8 100644 --- a/tests/integration/test_v2_catalog_installed_folders.py +++ b/tests/integration/test_v2_catalog_installed_folders.py @@ -62,9 +62,8 @@ "reads from Core's 0000-01-01" ), "gov.aca.ineligible_immigration_statuses": "a list of enum names", - "gov.irs.credits.premium_tax_credit.phase_out": ( - "bracket scales (rate[0].amount, rate[1].threshold, ...) whose " - "upper brackets hold null values" + "gov.irs.credits.education.american_opportunity_credit.amount": ( + "a bracket scale (amount[0].rate, amount[1].threshold, ...)" ), "gov.states.ne.dhhs.child_care_subsidy.fpg_fraction": ( "values in force for a single day, the only ones in the installed models" @@ -74,7 +73,9 @@ "gov.hmrc.income_tax.rates.uk": ( "the UK income tax bracket scale: a rate and a threshold per bracket" ), - "gov.dwp.state_pension.triple_lock": "UK booleans and a null value", + "gov.dwp.state_pension.triple_lock": ( + "UK booleans and a null value, the only null in the selected folders" + ), }, } EARLIEST = datetime(1, 1, 1, tzinfo=UTC)