mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-06 05:01:48 +02:00
remove balance column on statistics view; updated unit tests
This commit is contained in:
parent
a00a9ff6b0
commit
1217bd0b21
2 changed files with 4 additions and 9 deletions
|
@ -18,14 +18,13 @@
|
|||
|
||||
{% block content %}
|
||||
<table id="bill_table" class="split_bills table table-striped">
|
||||
<thead><tr><th>{{ _("Who?") }}</th><th>{{ _("Paid") }}</th><th>{{ _("Spent") }}</th><th>{{ _("Balance") }}</th></tr></thead>
|
||||
<thead><tr><th>{{ _("Who?") }}</th><th>{{ _("Paid") }}</th><th>{{ _("Spent") }}</th></tr></thead>
|
||||
<tbody>
|
||||
{% for stat in members_stats %}
|
||||
<tr>
|
||||
<td>{{ stat.member.name }}</td>
|
||||
<td>{{ "%0.2f"|format(stat.paid) }}</td>
|
||||
<td>{{ "%0.2f"|format(stat.spent) }}</td>
|
||||
<td>{{ "%0.2f"|format(stat.balance) }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
|
|
@ -933,28 +933,24 @@ class BudgetTestCase(IhatemoneyTestCase):
|
|||
self.assertIn(
|
||||
"<td>alexis</td>\n "
|
||||
+ "<td>20.00</td>\n "
|
||||
+ "<td>31.67</td>\n "
|
||||
+ "<td>-11.67</td>\n",
|
||||
+ "<td>31.67</td>\n",
|
||||
response.data.decode("utf-8"),
|
||||
)
|
||||
self.assertIn(
|
||||
"<td>fred</td>\n "
|
||||
+ "<td>20.00</td>\n "
|
||||
+ "<td>5.83</td>\n "
|
||||
+ "<td>14.17</td>\n",
|
||||
+ "<td>5.83</td>\n",
|
||||
response.data.decode("utf-8"),
|
||||
)
|
||||
self.assertIn(
|
||||
"<td>tata</td>\n "
|
||||
+ "<td>0.00</td>\n "
|
||||
+ "<td>2.50</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 "
|
||||
+ "<td>0.00</td>\n",
|
||||
response.data.decode("utf-8"),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue