Skip to content

Commit

Permalink
storage_*: fix test import of mock
Browse files Browse the repository at this point in the history
There's no need to depend on the additional lib mock.
  • Loading branch information
simahawk committed Sep 4, 2024
1 parent 914d91f commit 895e897
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions storage_backend/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 1 addition & 2 deletions storage_backend_sftp/tests/test_sftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 1 addition & 2 deletions storage_file/tests/test_storage_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
mock
odoo-test-helper

0 comments on commit 895e897

Please sign in to comment.