mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 17:32:38 +02:00
Fixed missing bill_type in unit tests
This commit is contained in:
parent
87edf49bad
commit
9694a65f0e
2 changed files with 14 additions and 0 deletions
|
@ -2005,6 +2005,7 @@ class TestBudget(IhatemoneyTestCase):
|
|||
"payed_for": [1, 2, 3],
|
||||
"amount": "12",
|
||||
"original_currency": "EUR",
|
||||
"bill_type": "Expense"
|
||||
},
|
||||
)
|
||||
self.client.post(
|
||||
|
@ -2016,6 +2017,7 @@ class TestBudget(IhatemoneyTestCase):
|
|||
"payed_for": [1, 2],
|
||||
"amount": "15",
|
||||
"original_currency": "EUR",
|
||||
"bill_type": "Expense"
|
||||
},
|
||||
)
|
||||
self.client.post(
|
||||
|
@ -2027,6 +2029,7 @@ class TestBudget(IhatemoneyTestCase):
|
|||
"payed_for": [1, 2],
|
||||
"amount": "10",
|
||||
"original_currency": "EUR",
|
||||
"bill_type": "Expense"
|
||||
},
|
||||
)
|
||||
|
||||
|
@ -2089,6 +2092,7 @@ class TestBudget(IhatemoneyTestCase):
|
|||
"payed_for": [1, 2, 3],
|
||||
"amount": "12",
|
||||
"original_currency": "EUR",
|
||||
"bill_type": "Expense"
|
||||
},
|
||||
)
|
||||
self.client.post(
|
||||
|
@ -2100,6 +2104,7 @@ class TestBudget(IhatemoneyTestCase):
|
|||
"payed_for": [1, 2],
|
||||
"amount": "15",
|
||||
"original_currency": "EUR",
|
||||
"bill_type": "Expense"
|
||||
},
|
||||
)
|
||||
self.client.post(
|
||||
|
@ -2111,6 +2116,7 @@ class TestBudget(IhatemoneyTestCase):
|
|||
"payed_for": [1, 2],
|
||||
"amount": "10",
|
||||
"original_currency": "EUR",
|
||||
"bill_type": "Expense"
|
||||
},
|
||||
)
|
||||
|
||||
|
@ -2189,6 +2195,7 @@ class TestBudget(IhatemoneyTestCase):
|
|||
"payed_for": [1],
|
||||
"amount": "12",
|
||||
"original_currency": "XXX",
|
||||
"bill_type": "Expense"
|
||||
},
|
||||
follow_redirects=True,
|
||||
)
|
||||
|
@ -2249,6 +2256,7 @@ class TestBudget(IhatemoneyTestCase):
|
|||
"payer": 1,
|
||||
"payed_for": [1],
|
||||
"amount": "12",
|
||||
"bill_type": "Expense",
|
||||
"original_currency": "XXX",
|
||||
},
|
||||
follow_redirects=True,
|
||||
|
@ -2356,6 +2364,7 @@ class TestBudget(IhatemoneyTestCase):
|
|||
"payer": members_ids[1],
|
||||
"payed_for": members_ids,
|
||||
"amount": "25",
|
||||
"bill_type": "Expense"
|
||||
},
|
||||
)
|
||||
|
||||
|
@ -2373,6 +2382,7 @@ class TestBudget(IhatemoneyTestCase):
|
|||
"payer": members_ids_tartif[2],
|
||||
"payed_for": members_ids_tartif,
|
||||
"amount": "24",
|
||||
"bill_type": "Expense"
|
||||
},
|
||||
)
|
||||
|
||||
|
@ -2407,6 +2417,7 @@ class TestBudget(IhatemoneyTestCase):
|
|||
"payer": members_ids[1],
|
||||
"payed_for": members_ids[1:],
|
||||
"amount": "25",
|
||||
"bill_type": "Expense"
|
||||
},
|
||||
)
|
||||
|
||||
|
|
|
@ -16,11 +16,13 @@ def import_data(request: pytest.FixtureRequest):
|
|||
"amount": 13.33,
|
||||
"payer_name": "tata",
|
||||
"payer_weight": 1.0,
|
||||
"bill_type": "Expense",
|
||||
"owers": ["jeanne"],
|
||||
},
|
||||
{
|
||||
"date": "2016-12-31",
|
||||
"what": "red wine",
|
||||
"bill_type": "Expense",
|
||||
"amount": 200.0,
|
||||
"payer_name": "jeanne",
|
||||
"payer_weight": 1.0,
|
||||
|
@ -28,6 +30,7 @@ def import_data(request: pytest.FixtureRequest):
|
|||
},
|
||||
{
|
||||
"date": "2016-12-31",
|
||||
"bill_type": "Expense",
|
||||
"what": "fromage a raclette",
|
||||
"amount": 10.0,
|
||||
"payer_name": "zorglub",
|
||||
|
|
Loading…
Reference in a new issue