From 2a58d5304658438dee2b31200528818daee4e128 Mon Sep 17 00:00:00 2001 From: Hlamalani Date: Wed, 26 Jul 2023 14:26:48 +0200 Subject: [PATCH] change no interested message --- yal/assessments.py | 9 ++++----- yal/tests/test_assessments.py | 10 ++++++++++ 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/yal/assessments.py b/yal/assessments.py index d17c9e5d..e3e0c44f 100644 --- a/yal/assessments.py +++ b/yal/assessments.py @@ -445,11 +445,10 @@ async def state_not_interested(self): question=self._( "\n".join( [ - "[persona_emoji] *No problem! You will no longer " - "be part of this survey.*", - "", - "Remember, you can still use the menu to get the info you " - "need.", + "That's completely okay, there are no consequences to not " + "taking part in this study. Please enjoy the BWise tool " + "and stay safe. If you change your mind, please send " + "*Answer* to this number" ] ) ), diff --git a/yal/tests/test_assessments.py b/yal/tests/test_assessments.py index 737f100a..3beb82f2 100644 --- a/yal/tests/test_assessments.py +++ b/yal/tests/test_assessments.py @@ -454,6 +454,16 @@ async def test_state_handle_assessment_reminder_response_not_interested_endline( tester.assert_metadata("assessment_reminder_name", "") tester.assert_metadata("assessment_reminder_sent", "") tester.assert_metadata("assessment_reminder_type", "") + tester.assert_message( + "\n".join( + [ + "That's completely okay, there are no consequences to not " + "taking part in this study. Please enjoy the BWise tool " + "and stay safe. If you change your mind, please send " + "*Answer* to this number" + ] + ) + ) @pytest.mark.asyncio