[FIX][P3] *: mock is now a part of unittest

This commit is contained in:
Richard Mathot
2017-10-03 10:32:01 +02:00
parent c2f5039f84
commit 95d03559a2
4 changed files with 16 additions and 4 deletions
@@ -2,7 +2,10 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from .common import TestAccountBudgetCommon
from mock import patch
try:
from unittest.mock import patch
except ImportError:
from mock import patch
from odoo.fields import Datetime
+4 -1
View File
@@ -7,7 +7,10 @@ from odoo.addons.event.tests.common import TestEventCommon
from odoo.exceptions import ValidationError, UserError, AccessError
from odoo.tools import mute_logger
from odoo.fields import Datetime
from mock import patch
try:
from unittest.mock import patch
except ImportError:
from mock import patch
class TestEventFlow(TestEventCommon):
@@ -1,7 +1,10 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from mock import patch
try:
from unittest.mock import patch
except ImportError:
from mock import patch
from odoo.exceptions import AccessError
from odoo.tests.common import TransactionCase
@@ -1,6 +1,9 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from mock import patch
try:
from unittest.mock import patch
except ImportError:
from mock import patch
from odoo.tests.common import TransactionCase