[IMP] website_blog: Adapt tests to work with/without demo data

This commit is contained in:
Yannick Tivisse
2019-11-05 16:18:10 +01:00
parent 05ae347bdd
commit f16f2e212a
+4 -1
View File
@@ -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)