mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-06 05:01:48 +02:00
Incomplete tests
This commit is contained in:
parent
51b7d2caff
commit
6682a6121e
1 changed files with 14 additions and 0 deletions
|
@ -1231,6 +1231,20 @@ class BudgetTestCase(IhatemoneyTestCase):
|
||||||
project = models.Project.query.get("raclette")
|
project = models.Project.query.get("raclette")
|
||||||
bills = project.get_pretty_bills()
|
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 i in json_to_import:
|
||||||
for j in bills:
|
for j in bills:
|
||||||
if j["what"] == i["what"]:
|
if j["what"] == i["what"]:
|
||||||
|
|
Loading…
Reference in a new issue