Skip to content

Commit 1417c27

Browse files
Fix test to use frs fixture and enum key strings
1 parent 91ec8f5 commit 1417c27

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
def test_highest_education(baseline):
2-
values = baseline.calculate("highest_education", period=2025)
3-
assert "Tertiary" in set(values)
4-
assert "Lower Secondary" in set(values)
5-
assert "Upper Secondary" in set(values)
1+
from policyengine_uk import Microsimulation
2+
3+
4+
def test_highest_education(frs):
5+
sim = Microsimulation(dataset=frs)
6+
values = sim.calculate("highest_education", period=2025)
7+
assert "TERTIARY" in set(values)
8+
assert "LOWER_SECONDARY" in set(values)
9+
assert "UPPER_SECONDARY" in set(values)

0 commit comments

Comments
 (0)