Changeset View
Changeset View
Standalone View
Standalone View
swh/indexer/tests/storage/test_in_memory.py
# Copyright (C) 2015-2019 The Software Heritage developers | # Copyright (C) 2015-2019 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 pytest | import pytest | ||||
from swh.indexer.storage import get_indexer_storage | from swh.indexer.storage import get_indexer_storage | ||||
from .test_storage import * # noqa | from .test_storage import * # noqa | ||||
@pytest.fixture | @pytest.fixture | ||||
def swh_indexer_storage(): | def swh_indexer_storage(): | ||||
storage_config = { | return get_indexer_storage("memory") | ||||
"cls": "memory", | |||||
"args": {}, | |||||
} | |||||
return get_indexer_storage(**storage_config) |