mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
Update negative amounts test
This commit is contained in:
parent
a1f1655f06
commit
c9b2d17f60
1 changed files with 1 additions and 3 deletions
|
@ -398,12 +398,10 @@ class BudgetTestCase(TestCase):
|
||||||
'what': u'fromage à raclette',
|
'what': u'fromage à raclette',
|
||||||
'payer': members_ids[0],
|
'payer': members_ids[0],
|
||||||
'payed_for': members_ids,
|
'payed_for': members_ids,
|
||||||
# bill with a negative value should be converted to a positive
|
|
||||||
# value
|
|
||||||
'amount': '-25'
|
'amount': '-25'
|
||||||
})
|
})
|
||||||
bill = models.Bill.query.filter(models.Bill.date == '2011-08-12')[0]
|
bill = models.Bill.query.filter(models.Bill.date == '2011-08-12')[0]
|
||||||
self.assertEqual(bill.amount, 25)
|
self.assertEqual(bill.amount, -25)
|
||||||
|
|
||||||
#add a bill with a comma
|
#add a bill with a comma
|
||||||
self.app.post("/raclette/add", data={
|
self.app.post("/raclette/add", data={
|
||||||
|
|
Loading…
Add table
Reference in a new issue