summaryrefslogtreecommitdiff
path: root/addons/website_forum/tests
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2016-08-09 16:17:17 +0200
committerThibault Delavallée <tde@openerp.com>2016-08-10 15:48:07 +0200
commitc8a313d51e57e9db52758a2c92c13044efef5a6a (patch)
tree5d213f21f33e815804206e36bf4f6c807a6a122c /addons/website_forum/tests
parent5ce159924c235c06e4b1f6f653fe305932b83b5a (diff)
[IMP] various: use odoo for imports instead of openerp and update class names
Diffstat (limited to 'addons/website_forum/tests')
-rw-r--r--addons/website_forum/tests/common.py3
-rw-r--r--addons/website_forum/tests/test_forum.py5
-rw-r--r--addons/website_forum/tests/test_forum_process.py11
3 files changed, 12 insertions, 7 deletions
diff --git a/addons/website_forum/tests/common.py b/addons/website_forum/tests/common.py
index 279ebc608ee..f2f074aeff0 100644
--- a/addons/website_forum/tests/common.py
+++ b/addons/website_forum/tests/common.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
-from openerp.tests import common
+from odoo.tests import common
KARMA = {
'ask': 5, 'ans': 10,
diff --git a/addons/website_forum/tests/test_forum.py b/addons/website_forum/tests/test_forum.py
index 7adf0141df5..344122abe2f 100644
--- a/addons/website_forum/tests/test_forum.py
+++ b/addons/website_forum/tests/test_forum.py
@@ -1,9 +1,10 @@
# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
from .common import KARMA, TestForumCommon
from ..models.forum import KarmaError
-from openerp.exceptions import UserError, AccessError
-from openerp.tools import mute_logger
+from odoo.exceptions import UserError, AccessError
+from odoo.tools import mute_logger
class TestForum(TestForumCommon):
diff --git a/addons/website_forum/tests/test_forum_process.py b/addons/website_forum/tests/test_forum_process.py
index 18f8812346e..ef8b290a075 100644
--- a/addons/website_forum/tests/test_forum_process.py
+++ b/addons/website_forum/tests/test_forum_process.py
@@ -1,8 +1,11 @@
-import openerp.tests
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
-@openerp.tests.common.at_install(False)
-@openerp.tests.common.post_install(True)
-class TestUi(openerp.tests.HttpCase):
+import odoo.tests
+
+
+@odoo.tests.common.at_install(False)
+@odoo.tests.common.post_install(True)
+class TestUi(odoo.tests.HttpCase):
def test_01_admin_forum_tour(self):
self.phantom_js("/", "odoo.__DEBUG__.services['web_tour.tour'].run('question')", "odoo.__DEBUG__.services['web_tour.tour'].tours.question", login="admin")