From 6682a6121ee1b364818795c80c1960c5f10c9557 Mon Sep 17 00:00:00 2001 From: Nicolas Vanvyve Date: Wed, 8 Jan 2020 18:16:19 +0100 Subject: [PATCH] Incomplete tests --- ihatemoney/tests/tests.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ihatemoney/tests/tests.py b/ihatemoney/tests/tests.py index cd5552aa..1d9646e1 100644 --- a/ihatemoney/tests/tests.py +++ b/ihatemoney/tests/tests.py @@ -1231,6 +1231,20 @@ class BudgetTestCase(IhatemoneyTestCase): project = models.Project.query.get("raclette") bills = project.get_pretty_bills() + # Check if all bills has been add + # self.assertEqual(len(bills), 3) #FAIL HERE + + # Check if name of bills are ok + b = list() + for j in bills: + b.append(j["what"]) + b.sort() + ref = ["refund", "red wine", "fromage a raclette"] + ref.sort() + + # self.assertEqual(b, ref) + + # Check if other informations in bill are ok for i in json_to_import: for j in bills: if j["what"] == i["what"]: