From fe2db964348c36df64420640f2bb79ef06dc9ac5 Mon Sep 17 00:00:00 2001 From: Richard Mathot Date: Mon, 19 Jun 2017 15:25:16 +0200 Subject: [PATCH] [FIX] website_event_sale: test is now robust to multicurrency --- addons/website_event_sale/tests/test_ui.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/addons/website_event_sale/tests/test_ui.py b/addons/website_event_sale/tests/test_ui.py index 193521db8d8..77e548a623b 100644 --- a/addons/website_event_sale/tests/test_ui.py +++ b/addons/website_event_sale/tests/test_ui.py @@ -7,6 +7,12 @@ class TestUi(odoo.tests.HttpCase): at_install = False def test_admin(self): + # Seen that: + # - this test relies on demo data that are entirely in USD (pricelists) + # - that main demo company is gelocated in US + # - that this test awaits for hardcoded USDs amount + # we have to force company currency as USDs only for this test + self.env.ref('base.main_company').write({'currency_id': self.env.ref('base.USD')}) self.phantom_js("/", "odoo.__DEBUG__.services['web_tour.tour'].run('event_buy_tickets')", "odoo.__DEBUG__.services['web_tour.tour'].tours.event_buy_tickets.ready", login="admin") def test_demo(self):