From 8ee59b350905399b23ce5cd18af01f8f0a7a6597 Mon Sep 17 00:00:00 2001 From: Glandos Date: Sun, 4 Jul 2021 15:33:53 +0200 Subject: [PATCH] update test comments --- ihatemoney/tests/budget_test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ihatemoney/tests/budget_test.py b/ihatemoney/tests/budget_test.py index adfe75ec..83b84832 100644 --- a/ihatemoney/tests/budget_test.py +++ b/ihatemoney/tests/budget_test.py @@ -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