From 3591f7da96b57c50f8d543f313c586705580f0e2 Mon Sep 17 00:00:00 2001 From: Glandos Date: Mon, 12 Jul 2021 22:39:25 +0200 Subject: [PATCH] adapt test for new translations --- ihatemoney/tests/history_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ihatemoney/tests/history_test.py b/ihatemoney/tests/history_test.py index d51c53c6..1a8d3504 100644 --- a/ihatemoney/tests/history_test.py +++ b/ihatemoney/tests/history_test.py @@ -369,7 +369,7 @@ class HistoryTestCase(IhatemoneyTestCase): ) self.assertRegex( resp.data.decode("utf-8"), - r"Bill %s:\s* amount changed\s* from %s\s* to %s" + r"Bill %s:\s* Amount changed\s* from %s\s* to %s" % ( em_surround("fromage à raclette", regex_escape=True), em_surround("25.0", regex_escape=True), @@ -385,7 +385,7 @@ class HistoryTestCase(IhatemoneyTestCase): resp.data.decode("utf-8").index( f"Bill {em_surround('fromage à raclette')} renamed to" ), - resp.data.decode("utf-8").index("amount changed"), + resp.data.decode("utf-8").index("Amount changed"), ) # delete the bill @@ -489,7 +489,7 @@ class HistoryTestCase(IhatemoneyTestCase): self.assertEqual(resp.status_code, 200) self.assertRegex( resp.data.decode("utf-8"), - r"Bill {}:\s* amount changed\s* from {}\s* to {}".format( + r"Bill {}:\s* Amount changed\s* from {}\s* to {}".format( em_surround("Bill 1", regex_escape=True), em_surround("25.0", regex_escape=True), em_surround("88.0", regex_escape=True),