mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-06 05:01:48 +02:00
update test comments
This commit is contained in:
parent
63f8d7a25f
commit
8ee59b3509
1 changed files with 3 additions and 1 deletions
|
@ -1582,13 +1582,14 @@ class BudgetTestCase(IhatemoneyTestCase):
|
|||
converter = CurrencyConverter()
|
||||
converter.get_rates = MagicMock(return_value=mock_data)
|
||||
|
||||
# A project should be editable
|
||||
# Default currency is 'XXX', but we should start from a project with a currency
|
||||
self.post_project("raclette", default_currency="USD")
|
||||
|
||||
# add members
|
||||
self.client.post("/raclette/members/add", data={"name": "zorglub"})
|
||||
self.client.post("/raclette/members/add", data={"name": "fred"})
|
||||
|
||||
# Bill with a different currency than project's default
|
||||
self.client.post(
|
||||
"/raclette/add",
|
||||
data={
|
||||
|
@ -1608,6 +1609,7 @@ class BudgetTestCase(IhatemoneyTestCase):
|
|||
bill.amount, "EUR", "USD"
|
||||
)
|
||||
|
||||
# And switch project to the currency from the bill we created
|
||||
project.switch_currency("EUR")
|
||||
bill = project.get_bills().first()
|
||||
assert bill.converted_amount == bill.amount
|
||||
|
|
Loading…
Reference in a new issue