From d360c49a5ad03eb3d12dcaa00301a6e1d76b3b40 Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Mon, 4 Nov 2019 16:38:28 +0100 Subject: [PATCH] [IMP] portal: Adapt tests to work with/without demo data --- addons/portal/tests/test_load_process.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/addons/portal/tests/test_load_process.py b/addons/portal/tests/test_load_process.py index ccefbad8d39..5f9d9802aa1 100644 --- a/addons/portal/tests/test_load_process.py +++ b/addons/portal/tests/test_load_process.py @@ -1,9 +1,11 @@ # -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. -import odoo.tests + +from odoo.addons.base.tests.common import HttpCaseWithUserPortal +from odoo.tests import tagged -@odoo.tests.tagged('post_install', '-at_install') -class TestUi(odoo.tests.HttpCase): +@tagged('post_install', '-at_install') +class TestUi(HttpCaseWithUserPortal): def test_01_portal_load_tour(self): self.start_tour("/", 'portal_load_homepage', login="portal")