diff options
| author | fredericsureau <frederic.sureau@gmail.com> | 2016-09-12 16:30:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-12 16:30:01 +0200 |
| commit | c9b2d17f603bd34dc15b66c123d7b17228362b33 (patch) | |
| tree | 2ae9776ddb48d9bc8da9bde23b50123cec95ee02 /budget | |
| parent | a1f1655f063f8f6e20ec940b9dd20d1945e5a770 (diff) | |
| download | ihatemoney-mirror-c9b2d17f603bd34dc15b66c123d7b17228362b33.zip ihatemoney-mirror-c9b2d17f603bd34dc15b66c123d7b17228362b33.tar.gz ihatemoney-mirror-c9b2d17f603bd34dc15b66c123d7b17228362b33.tar.bz2 | |
Update negative amounts test
Diffstat (limited to 'budget')
| -rw-r--r-- | budget/tests.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/budget/tests.py b/budget/tests.py index 82465f9..eea7537 100644 --- a/budget/tests.py +++ b/budget/tests.py @@ -398,12 +398,10 @@ class BudgetTestCase(TestCase): 'what': u'fromage à raclette', 'payer': members_ids[0], 'payed_for': members_ids, - # bill with a negative value should be converted to a positive - # value 'amount': '-25' }) 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 self.app.post("/raclette/add", data={ |
