From 895e897a911aecbe6e486d03878db4868b42e89b Mon Sep 17 00:00:00 2001 From: Simone Orsi Date: Wed, 4 Sep 2024 06:52:13 +0200 Subject: [PATCH] storage_*: fix test import of mock There's no need to depend on the additional lib mock. --- storage_backend/tests/common.py | 3 +-- storage_backend_sftp/tests/test_sftp.py | 3 +-- storage_file/tests/test_storage_file.py | 3 +-- test-requirements.txt | 1 - 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/storage_backend/tests/common.py b/storage_backend/tests/common.py index 42cb96fb8f..2b81cc09d0 100644 --- a/storage_backend/tests/common.py +++ b/storage_backend/tests/common.py @@ -3,8 +3,7 @@ # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). import base64 - -import mock +from unittest import mock from odoo.addons.component.tests.common import TransactionComponentCase diff --git a/storage_backend_sftp/tests/test_sftp.py b/storage_backend_sftp/tests/test_sftp.py index 26ec9c9df9..fb01fab642 100644 --- a/storage_backend_sftp/tests/test_sftp.py +++ b/storage_backend_sftp/tests/test_sftp.py @@ -11,8 +11,7 @@ import errno import logging import os - -import mock +from unittest import mock from odoo.addons.storage_backend.tests.common import BackendStorageTestMixin, CommonCase diff --git a/storage_file/tests/test_storage_file.py b/storage_file/tests/test_storage_file.py index 027f8c5c26..9ff1277113 100644 --- a/storage_file/tests/test_storage_file.py +++ b/storage_file/tests/test_storage_file.py @@ -3,10 +3,9 @@ # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). import base64 +from unittest import mock from urllib import parse -import mock - from odoo.exceptions import AccessError, UserError from odoo.addons.component.tests.common import TransactionComponentCase diff --git a/test-requirements.txt b/test-requirements.txt index 58bf70f5a2..4ad8e0ecea 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,2 +1 @@ -mock odoo-test-helper