From f16f2e212a30352ead86c2f876be02b5c5e23b07 Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Mon, 4 Nov 2019 16:50:50 +0100 Subject: [PATCH] [IMP] website_blog: Adapt tests to work with/without demo data --- addons/website_blog/tests/test_ui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/website_blog/tests/test_ui.py b/addons/website_blog/tests/test_ui.py index 654ca612644..52bcd26cd71 100644 --- a/addons/website_blog/tests/test_ui.py +++ b/addons/website_blog/tests/test_ui.py @@ -1,9 +1,12 @@ +# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import odoo.tests +from odoo import tools @odoo.tests.tagged('post_install', '-at_install') class TestUi(odoo.tests.HttpCase): def test_admin(self): - self.start_tour("/", 'blog', login='admin') + self.env['blog.blog'].create({'name': 'Travel'}) + self.start_tour("/", 'blog', login='admin', step_delay=200)