[FIX][P3] *: mock is now a part of unittest
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user