Skip to content

Replace high-value surcharge test with YAML policy tests#1569

Merged
MaxGhenis merged 1 commit intomainfrom
codex/fix-1568-yaml-tests
Apr 7, 2026
Merged

Replace high-value surcharge test with YAML policy tests#1569
MaxGhenis merged 1 commit intomainfrom
codex/fix-1568-yaml-tests

Conversation

@MaxGhenis
Copy link
Copy Markdown
Collaborator

Summary

  • replace the bespoke test_high_value_council_tax_surcharge.py test with standard YAML policy tests
  • cover the same behavior from #1568: 2028 start date, 2029 uprating, aggregate flow into household_tax/gov_tax, and England-only scope
  • override gov.hmrc.stamp_duty.property_sale_rate in the YAML cases so the aggregate assertions stay stable

Testing

  • uv run policyengine-core test policyengine_uk/tests/policy/baseline/gov/hmrc/council_tax/high_value_council_tax_surcharge.yaml -c policyengine_uk
  • uv run python -m pytest -q policyengine_uk/tests

@MaxGhenis MaxGhenis merged commit 6d46ff4 into main Apr 7, 2026
2 checks passed
@MaxGhenis MaxGhenis deleted the codex/fix-1568-yaml-tests branch April 7, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant