Skip to content

Commit

Permalink
Replace assertRegexpMatches usage
Browse files Browse the repository at this point in the history
  • Loading branch information
norkans7 committed Oct 23, 2024
1 parent 6549f6c commit f309cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ureport/polls/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit f309cee

Please sign in to comment.