mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 20:51:49 +02:00
adapt test for new translations
This commit is contained in:
parent
b06e0c23ad
commit
3591f7da96
1 changed files with 3 additions and 3 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue