diff --git a/swh/objstorage/__init__.py b/swh/objstorage/__init__.py --- a/swh/objstorage/__init__.py +++ b/swh/objstorage/__init__.py @@ -17,7 +17,7 @@ _STORAGE_CLASSES = { 'pathslicing': PathSlicingObjStorage, 'remote': RemoteObjStorage, - 'in-memory': InMemoryObjStorage, + 'memory': InMemoryObjStorage, } _STORAGE_CLASSES_MISSING = { diff --git a/swh/objstorage/tests/test_objstorage_in_memory.py b/swh/objstorage/tests/test_objstorage_in_memory.py --- a/swh/objstorage/tests/test_objstorage_in_memory.py +++ b/swh/objstorage/tests/test_objstorage_in_memory.py @@ -1,11 +1,11 @@ -# Copyright (C) 2015-2016 The Software Heritage developers +# Copyright (C) 2015-2018 The Software Heritage developers # See the AUTHORS file at the top-level directory of this distribution # License: GNU General Public License version 3, or any later version # See top-level LICENSE file for more information import unittest -from swh.objstorage.objstorage_in_memory import InMemoryObjStorage +from swh.objstorage import get_objstorage from .objstorage_testing import ObjStorageTestFixture @@ -13,4 +13,4 @@ class TestInMemoryObjStorage(ObjStorageTestFixture, unittest.TestCase): def setUp(self): super().setUp() - self.storage = InMemoryObjStorage() + self.storage = get_objstorage(cls='memory', args={})