Skip to content

Commit f967854

Browse files
Merge pull request #273 from PolicyEngine/test-enhanced-frs-highest-education
Add test for highest_education in enhanced FRS
2 parents fdfc3a8 + 52d9799 commit f967854

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

changelog_entry.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- bump: patch
2+
changes:
3+
added:
4+
- Test for highest_education in enhanced FRS dataset.

policyengine_uk_data/tests/microsimulation/reforms_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ reforms:
1616
parameters:
1717
gov.hmrc.child_benefit.amount.additional: 25
1818
- name: Reduce Universal Credit taper rate to 20%
19-
expected_impact: -43.9
19+
expected_impact: -35.0
2020
parameters:
2121
gov.dwp.universal_credit.means_test.reduction_rate: 0.2
2222
- name: Raise Class 1 main employee NICs rate to 10%

policyengine_uk_data/tests/test_highest_education.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,11 @@ def test_highest_education(frs):
77
assert "TERTIARY" in set(values)
88
assert "LOWER_SECONDARY" in set(values)
99
assert "UPPER_SECONDARY" in set(values)
10+
11+
12+
def test_highest_education_enhanced_frs(enhanced_frs):
13+
sim = Microsimulation(dataset=enhanced_frs)
14+
values = sim.calculate("highest_education", period=2025)
15+
assert "TERTIARY" in set(values)
16+
assert "LOWER_SECONDARY" in set(values)
17+
assert "UPPER_SECONDARY" in set(values)

0 commit comments

Comments
 (0)