Skip to content

Commit c3c005d

Browse files
committed
expect MMR(V) when required
1 parent e6a11ec commit c3c005d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

mavis/test/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class Programme(StrEnum):
140140
FLU = "flu"
141141
HPV = "HPV"
142142
MENACWY = "MenACWY"
143-
MMR = "MMR"
143+
MMR = "MMR(V)"
144144
TD_IPV = "Td/IPV"
145145

146146
@property

mavis/test/pages/online_consent_wizard_page.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,12 +379,14 @@ def check_final_consent_message(
379379
def programme_display(
380380
programme: Programme, consent_option: ConsentOption
381381
) -> str:
382-
if programme == Programme.FLU:
382+
if programme is Programme.FLU:
383383
return (
384384
"injected flu"
385385
if consent_option is ConsentOption.INJECTION
386386
else "nasal spray flu"
387387
)
388+
if programme is Programme.MMR:
389+
return "MMR"
388390
return str(programme)
389391

390392
programmes_str = " and ".join(

0 commit comments

Comments
 (0)