22 lines
1.0 KiB
Python
22 lines
1.0 KiB
Python
|
import odoo.tests
|
||
|
|
||
|
|
||
|
class TestUi(odoo.tests.HttpCase):
|
||
|
|
||
|
post_install = True
|
||
|
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.cr.execute("UPDATE res_company SET currency_id = %s WHERE id = %s", [self.env.ref('base.USD').id, self.env.ref('base.main_company').id])
|
||
|
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):
|
||
|
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="demo")
|
||
|
|
||
|
# TO DO - add public test with new address when convert to web.tour format.
|