From 8dfb9cadfa44c5017ad7fbccfd078679526815f5 Mon Sep 17 00:00:00 2001 From: Hlamalani Date: Wed, 22 Nov 2023 16:40:11 +0200 Subject: [PATCH 1/2] remove duplicate display options --- yal/endline_terms_and_conditions.py | 2 -- yal/tests/test_main.py | 3 --- 2 files changed, 5 deletions(-) diff --git a/yal/endline_terms_and_conditions.py b/yal/endline_terms_and_conditions.py index f551ba5a..49b99d1a 100644 --- a/yal/endline_terms_and_conditions.py +++ b/yal/endline_terms_and_conditions.py @@ -365,8 +365,6 @@ async def state_endline_limit_reached(self): "enthusiasm and hope you can catch the next one.", "", "Go ahead and browse the menu or ask us a question.", - "", - get_display_choices(choices), ] ) ) diff --git a/yal/tests/test_main.py b/yal/tests/test_main.py index 458d97d4..47ccfdd5 100644 --- a/yal/tests/test_main.py +++ b/yal/tests/test_main.py @@ -1613,9 +1613,6 @@ async def test_state_endline_limit_reached( "enthusiasm and hope you can catch the next one.", "", "Go ahead and browse the menu or ask us a question.", - "", - "1. Go to the menu", - "2. Ask a question", ] ) ) From ae57c22d710d70cebffb606ffcec77f5c8d47aa1 Mon Sep 17 00:00:00 2001 From: Hlamalani Date: Wed, 22 Nov 2023 16:43:50 +0200 Subject: [PATCH 2/2] remove duplicate display options --- yal/endline_terms_and_conditions.py | 1 - 1 file changed, 1 deletion(-) diff --git a/yal/endline_terms_and_conditions.py b/yal/endline_terms_and_conditions.py index 49b99d1a..f65098bd 100644 --- a/yal/endline_terms_and_conditions.py +++ b/yal/endline_terms_and_conditions.py @@ -8,7 +8,6 @@ WhatsAppButtonState, WhatsAppListState, ) -from vaccine.utils import get_display_choices from yal import rapidpro from yal.surveys.endline import Application as EndlineApplication from yal.utils import get_current_datetime, get_generic_error, normalise_phonenumber