diff options
| author | Jocelyn Delalande <jocelyn@crapouillou.net> | 2018-02-03 18:04:06 +0100 |
|---|---|---|
| committer | Jocelyn Delalande <jocelyn@crapouillou.net> | 2018-02-07 00:01:13 +0100 |
| commit | b1a4572e8c72e1d7f49b07aaeb5be0f3603bf0a7 (patch) | |
| tree | d97e0c6211ca1d408af3e346a60cad1a65ccdca0 /ihatemoney/tests/tests.py | |
| parent | 389c7b8bcd2813d8549858265432859259942fd6 (diff) | |
| download | ihatemoney-mirror-b1a4572e8c72e1d7f49b07aaeb5be0f3603bf0a7.zip ihatemoney-mirror-b1a4572e8c72e1d7f49b07aaeb5be0f3603bf0a7.tar.gz ihatemoney-mirror-b1a4572e8c72e1d7f49b07aaeb5be0f3603bf0a7.tar.bz2 | |
Change statistics data structure
Clearer data structure, and simpler template
This commit has a side effect: sidebar now hides disabled members.
IMHO, the disabled members should either be hidden or shown consistently between
sidebar and central table. Previous status was: shown in sidebar (if balance ≠
0) and hidden in central table.
Diffstat (limited to 'ihatemoney/tests/tests.py')
| -rw-r--r-- | ihatemoney/tests/tests.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/ihatemoney/tests/tests.py b/ihatemoney/tests/tests.py index c13131c..3582032 100644 --- a/ihatemoney/tests/tests.py +++ b/ihatemoney/tests/tests.py @@ -750,24 +750,24 @@ class BudgetTestCase(IhatemoneyTestCase): }) response = self.client.get("/raclette/statistics") - self.assertIn("<td>alexis</td>\n " - + "<td>20.00</td>\n " - + "<td>31.67</td>\n " + self.assertIn("<td>alexis</td>\n " + + "<td>20.00</td>\n " + + "<td>31.67</td>\n " + "<td>-11.67</td>\n", response.data.decode('utf-8')) - self.assertIn("<td>fred</td>\n " - + "<td>20.00</td>\n " - + "<td>5.83</td>\n " + self.assertIn("<td>fred</td>\n " + + "<td>20.00</td>\n " + + "<td>5.83</td>\n " + "<td>14.17</td>\n", response.data.decode('utf-8')) - self.assertIn("<td>tata</td>\n " - + "<td>0.00</td>\n " - + "<td>2.50</td>\n " + self.assertIn("<td>tata</td>\n " + + "<td>0.00</td>\n " + + "<td>2.50</td>\n " + "<td>-2.50</td>\n", response.data.decode('utf-8')) - self.assertIn("<td>toto</td>\n " - + "<td>0.00</td>\n " - + "<td>0.00</td>\n " + self.assertIn("<td>toto</td>\n " + + "<td>0.00</td>\n " + + "<td>0.00</td>\n " + "<td>0.00</td>\n", response.data.decode('utf-8')) |
