You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
611 B

  1. # -*- coding: utf-8 -*-
  2. # Copyright 2017 LasLabs Inc.
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. from odoo.tests.common import HttpCase
  5. class TestController(HttpCase):
  6. post_install = True
  7. at_install = False
  8. def test_portal_contract_view_tour(self):
  9. """ Tests contract view is correct """
  10. tour = "odoo.__DEBUG__.services['web_tour.tour']"
  11. self.phantom_js(
  12. url_path='/my/home',
  13. code="%s.run('test_contract_view')" % tour,
  14. ready="%s.tours.test_contract_view.ready" % tour,
  15. login='portal',
  16. )