[FIX] website_event_sale: test is now robust to multicurrency

This commit is contained in:
Richard Mathot
2017-06-19 15:27:12 +02:00
parent 6662cdfcab
commit fe2db96434
@@ -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):