Changeset View
Changeset View
Standalone View
Standalone View
swh/indexer/tests/storage/test_in_memory.py
from unittest import TestCase | import pytest | ||||
ardumont: You are missing headers. | |||||
Done Inline Actionsnot really here (but I could have added them obviously) but I do in test_storage.py for sure douardda: not really here (but I could have added them obviously) but I do in test_storage.py for sure | |||||
from .test_storage import CommonTestStorage | from swh.indexer.storage import get_indexer_storage | ||||
from .test_storage import * # noqa | |||||
class IndexerTestInMemoryStorage(CommonTestStorage, TestCase): | |||||
def setUp(self): | @pytest.fixture | ||||
self.storage_config = { | def swh_indexer_storage(swh_indexer_storage_postgresql): | ||||
'cls': 'memory', | storage_config = { | ||||
'cls': 'local', | |||||
'args': { | 'args': { | ||||
'db': swh_indexer_storage_postgresql.dsn, | |||||
}, | }, | ||||
} | } | ||||
super().setUp() | return get_indexer_storage(**storage_config) | ||||
def reset_storage_tables(self): | |||||
self.storage = self.storage.__class__() | |||||
def test_check_config(self): | |||||
pass |
You are missing headers.