Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add validation tests for housing benefit #803

Merged
merged 26 commits into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
e1fa086
add documentation for income tax
chelsea128 Sep 14, 2023
0200a41
Add documentation for income tax
chelsea128 Sep 14, 2023
fd541d1
Merge branch 'master' of https://github.com/chelsea128/policyengine-uk
chelsea128 Sep 14, 2023
cf89246
update
chelsea128 Sep 21, 2023
cff0be8
Update
chelsea128 Sep 21, 2023
d10c94e
Merge branch 'master' of https://github.com/PolicyEngine/openfisca-uk…
nikhilwoodruff Sep 21, 2023
ab1ba13
Add Nikhil's comments and edits
nikhilwoodruff Sep 21, 2023
c7388c2
adjust income tax doc
chelsea128 Oct 5, 2023
f515120
revise doc
chelsea128 Oct 5, 2023
72d2493
revise
chelsea128 Oct 5, 2023
ced895f
revise income tax doc
chelsea128 Oct 5, 2023
cae6029
revise
chelsea128 Oct 5, 2023
0800ec3
revise
chelsea128 Oct 12, 2023
4eb9125
revise
chelsea128 Oct 12, 2023
46c6a06
revise
chelsea128 Oct 12, 2023
cc1cd7c
revise
chelsea128 Oct 19, 2023
8bbebfa
hide code cell
chelsea128 Nov 16, 2023
2f56361
hide code cell
chelsea128 Nov 16, 2023
a7de65a
add test cases for housing benefit
chelsea128 Jan 11, 2024
54c84a7
Merge branch 'master' of https://github.com/chelsea128/policyengine-uk
chelsea128 Jan 11, 2024
afe6059
add test case with partial eligibility
chelsea128 Feb 15, 2024
5b59c85
adjust the error margin
chelsea128 Feb 29, 2024
f7e3643
Merge branch 'PolicyEngine:master' into master
chelsea128 Feb 29, 2024
db72901
adjust the error margin
chelsea128 Feb 29, 2024
4c087f5
Merge branch 'master' of https://github.com/chelsea128/policyengine-uk
chelsea128 Feb 29, 2024
ec60a77
adjust the error margin
chelsea128 Feb 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: minor
changes:
added:
- Add test cases for housing benefit
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
- name: Single person eligible for housing benefit
period: 2023
absolute_error_margin: 5
input:
age: 28
benunit_rent: 80*52
is_single_person: true
in_social_housing: true
housing_benefit_reported: true
working_tax_credit_reported: true
employment_income: 2000
output:
housing_benefit: 80*52
- name: Single person not eligible for housing benefit
period: 2023
absolute_error_margin: 5
input:
age: 28
benunit_rent: 80*52
is_single_person: true
in_social_housing: false
housing_benefit_reported: 0
working_tax_credit_reported: false
employment_income: 2000
output:
housing_benefit: 0
- name: Single person partial eligible for housing benefit
period: 2023
absolute_error_margin: 5
nikhilwoodruff marked this conversation as resolved.
Show resolved Hide resolved
input:
age: 28
weekly_hours: 31
benunit_rent: 80*52
is_single_person: true
in_social_housing: true
is_household_head: true
housing_benefit_reported: true
working_tax_credit_reported: true
employment_income: 6000
output:
housing_benefit: 45.86*52
- name: Lone parent with small earnings
period: 2023
absolute_error_margin: 5
input:
age: 26
benunit_rent: 80*52
is_lone_parent: true
tenure_type: RENT_FROM_COUNCIL
housing_benefit_reported: true
employment_income: 0
output:
housing_benefit: 80*52
- name: Single person over pension age
period: 2023
input:
age: 68
gender: MALE
benunit_rent: 80*52
housing_benefit_reported: true
LHA_eligible: true
is_SP_age: true
is_single_person: true
pension_income: 200*52
output:
housing_benefit: 80*52
nikhilwoodruff marked this conversation as resolved.
Show resolved Hide resolved
Loading