Changeset View
Changeset View
Standalone View
Standalone View
swh/objstorage/tests/test_objstorage_pathslicing.py
# Copyright (C) 2015-2020 The Software Heritage developers | # Copyright (C) 2015-2020 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
import shutil | import shutil | ||||
import tempfile | import tempfile | ||||
import unittest | import unittest | ||||
from unittest.mock import DEFAULT, patch | from unittest.mock import DEFAULT, patch | ||||
from swh.model import hashutil | from swh.model import hashutil | ||||
from swh.objstorage import exc | from swh.objstorage import exc | ||||
from swh.objstorage.constants import ID_DIGEST_LENGTH | |||||
from swh.objstorage.factory import get_objstorage | from swh.objstorage.factory import get_objstorage | ||||
from swh.objstorage.objstorage import ID_DIGEST_LENGTH | |||||
from .objstorage_testing import ObjStorageTestFixture | from .objstorage_testing import ObjStorageTestFixture | ||||
class TestPathSlicingObjStorage(ObjStorageTestFixture, unittest.TestCase): | class TestPathSlicingObjStorage(ObjStorageTestFixture, unittest.TestCase): | ||||
compression = "none" | compression = "none" | ||||
def setUp(self): | def setUp(self): | ||||
▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines |