diff options
| author | Glandos <bugs-github@antipoul.fr> | 2020-05-10 23:05:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-10 23:05:48 +0200 |
| commit | ca7c3d5452b85592e76e3ee2bef7bfedd695d3e4 (patch) | |
| tree | f129c19fcca9123cdae886f89d4fcc0b2e13aab9 /ihatemoney/tests | |
| parent | b9672d9e15fb8feeb21134869f7ce8c4b1087808 (diff) | |
| download | ihatemoney-mirror-ca7c3d5452b85592e76e3ee2bef7bfedd695d3e4.zip ihatemoney-mirror-ca7c3d5452b85592e76e3ee2bef7bfedd695d3e4.tar.gz ihatemoney-mirror-ca7c3d5452b85592e76e3ee2bef7bfedd695d3e4.tar.bz2 | |
use currency format everywhere (#619)
This should unify the number formats, along with #618
Diffstat (limited to 'ihatemoney/tests')
| -rw-r--r-- | ihatemoney/tests/tests.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ihatemoney/tests/tests.py b/ihatemoney/tests/tests.py index b13c7c0..4cdf316 100644 --- a/ihatemoney/tests/tests.py +++ b/ihatemoney/tests/tests.py @@ -942,16 +942,18 @@ class BudgetTestCase(IhatemoneyTestCase): response = self.client.get("/raclette/statistics") regex = r"<td class=\"d-md-none\">{}</td>\s+<td>{}</td>\s+<td>{}</td>" self.assertRegex( - response.data.decode("utf-8"), regex.format("zorglub", "20.00", "31.67"), + response.data.decode("utf-8"), + regex.format("zorglub", r"\$20\.00", r"\$31\.67"), ) self.assertRegex( - response.data.decode("utf-8"), regex.format("fred", "20.00", "5.83"), + response.data.decode("utf-8"), + regex.format("fred", r"\$20\.00", r"\$5\.83"), ) self.assertRegex( - response.data.decode("utf-8"), regex.format("tata", "0.00", "2.50"), + response.data.decode("utf-8"), regex.format("tata", r"\$0\.00", r"\$2\.50"), ) self.assertRegex( - response.data.decode("utf-8"), regex.format("pépé", "0.00", "0.00"), + response.data.decode("utf-8"), regex.format("pépé", r"\$0\.00", r"\$0\.00"), ) # Check that the order of participants in the sidebar table is the |
