Skip to content

Commit

Permalink
Merge pull request #643 from praekeltfoundation/fix_message
Browse files Browse the repository at this point in the history
change no interested message
  • Loading branch information
Hlamallama authored Jul 26, 2023
2 parents c048fc4 + 2a58d53 commit a161aa3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
9 changes: 4 additions & 5 deletions yal/assessments.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
)
),
Expand Down
10 changes: 10 additions & 0 deletions yal/tests/test_assessments.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a161aa3

Please sign in to comment.