From f309cee4556a6c8897d3cc4a5b91090e8fe1c295 Mon Sep 17 00:00:00 2001 From: Norbert Kwizera Date: Wed, 23 Oct 2024 17:01:40 +0200 Subject: [PATCH] Replace assertRegexpMatches usage --- ureport/polls/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ureport/polls/tests.py b/ureport/polls/tests.py index 0abbee476..682f6b0ed 100644 --- a/ureport/polls/tests.py +++ b/ureport/polls/tests.py @@ -834,7 +834,7 @@ def test_list_poll(self): response = self.client.get(list_url, SERVER_NAME="uganda.ureport.io") self.assertEqual(response.status_code, 200) self.assertEqual(len(response.context["object_list"]), 1) - self.assertRegexpMatches(response.content.decode("utf-8"), "Last results synced 5(.*)minutes ago") + self.assertRegex(response.content.decode("utf-8"), "Last results synced 5(.*)minutes ago") @patch("dash.orgs.models.TembaClient", MockTembaClient) def test_questions_poll(self):