From 55d2d7f68b2a371188a96e8274b9530a1d11a881 Mon Sep 17 00:00:00 2001 From: Hlamalani Date: Mon, 13 Nov 2023 13:12:25 +0200 Subject: [PATCH] capitalise word :( --- yal/assessments.py | 2 +- yal/tests/test_main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/yal/assessments.py b/yal/assessments.py index 0b1366b2..c898a071 100644 --- a/yal/assessments.py +++ b/yal/assessments.py @@ -378,7 +378,7 @@ async def state_handle_assessment_reminder_response(self): msisdn = utils.normalise_phonenumber(self.inbound.from_addr) whatsapp_id = msisdn.lstrip(" + ") endline_survey_started = self.user.metadata.get("endline_survey_started") - survey = "endline " if endline_survey_started == "pending" else "" + survey = "endline " if endline_survey_started == "Pending" else "" if inbound in [ "continue now", diff --git a/yal/tests/test_main.py b/yal/tests/test_main.py index 7bd6eb5a..695731b6 100644 --- a/yal/tests/test_main.py +++ b/yal/tests/test_main.py @@ -1542,7 +1542,7 @@ async def test_survey_invite_remind_me_tomorrow( tester.user.metadata["terms_accepted"] = True tester.user.metadata["onboarding_completed"] = True tester.user.metadata["baseline_survey_completed"] = True - tester.user.metadata["endline_survey_started"] = "pending" + tester.user.metadata["endline_survey_started"] = "Pending" await tester.user_input("remind me tomorrow")