swh:1:snp:eb70f1f85391e4b077c211bec36af0061c4bf937
Raw File
Tip revision: ba373c987010a24ded87ad5a86e1188b5c0ca884 authored by Jenkins for Software Heritage on 30 January 2020, 13:26:23 UTC
Updated debian changelog for version 0.0.169
Tip revision: ba373c9
test_in_memory.py
# Copyright (C) 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 pytest

from swh.storage import get_storage
from swh.storage.tests.test_storage import (  # noqa
    TestStorage, TestStorageGeneratedData)


# tests are executed using imported classes (TestStorage and
# TestStorageGeneratedData) using overloaded swh_storage fixture
# below

@pytest.fixture
def swh_storage():
    storage_config = {
        'cls': 'memory',
        'journal_writer': {
            'cls': 'memory',
        },
    }
    storage = get_storage(**storage_config)
    return storage
back to top