diff options
| author | Yannick Tivisse <yti@odoo.com> | 2019-11-04 16:37:24 +0100 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2019-11-05 13:08:03 +0100 |
| commit | 5b35100082a7cd9ecbb766d796bf602c68f29969 (patch) | |
| tree | 942059fa974817d9a6ad982524f673ed6911c67c /addons/note/tests | |
| parent | 102717c04275022f9891cf0278dec57da9b0f6c0 (diff) | |
[IMP] note: Adapt tests to work with/without demo data
Diffstat (limited to 'addons/note/tests')
| -rw-r--r-- | addons/note/tests/test_note.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/addons/note/tests/test_note.py b/addons/note/tests/test_note.py index 124f45ca0af..598f3eaea1f 100644 --- a/addons/note/tests/test_note.py +++ b/addons/note/tests/test_note.py @@ -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({ |
