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

This commit is contained in:
Yannick Tivisse
2019-11-05 13:08:03 +01:00
parent 102717c042
commit 5b35100082
+4 -3
View File
@@ -1,13 +1,14 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.tests import common
from odoo.addons.base.tests.common import TransactionCaseWithUserDemo
class TestNote(common.TransactionCase):
class TestNote(TransactionCaseWithUserDemo):
def test_bug_lp_1156215(self):
""" ensure any users can create new users """
demo_user = self.env.ref('base.user_demo')
demo_user = self.user_demo
group_erp = self.env.ref('base.group_erp_manager')
demo_user.write({