Skip to content

Commit d7b0160

Browse files
Add checkboxes for years 12 and 13 to filters
1 parent 463749c commit d7b0160

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

mavis/reporting/api_client/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ def get_year_groups(self) -> list[dict]:
109109
{"value": "9", "text": "Year 9"},
110110
{"value": "10", "text": "Year 10"},
111111
{"value": "11", "text": "Year 11"},
112+
{"value": "12", "text": "Year 12"},
113+
{"value": "13", "text": "Year 13"},
112114
]
113115

114116
def get_year_groups_for_programme(self, programme: str) -> list[dict]:

tests/api_client/test_client.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,22 @@ class TestGetYearGroupsForProgramme:
5151
def test_flu_returns_all_year_groups(self, api_client):
5252
result = api_client.get_year_groups_for_programme("flu")
5353
values = [yg["value"] for yg in result]
54-
assert values == ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11"]
54+
assert values == [
55+
"0",
56+
"1",
57+
"2",
58+
"3",
59+
"4",
60+
"5",
61+
"6",
62+
"7",
63+
"8",
64+
"9",
65+
"10",
66+
"11",
67+
"12",
68+
"13",
69+
]
5570

5671
def test_hpv_returns_years_8_to_11(self, api_client):
5772
result = api_client.get_year_groups_for_programme("hpv")

0 commit comments

Comments
 (0)