Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/tests/test_in_memory.py
Show All 12 Lines | |||||
# tests are executed using imported classes (TestStorage and | # tests are executed using imported classes (TestStorage and | ||||
# TestStorageGeneratedData) using overloaded swh_storage fixture | # TestStorageGeneratedData) using overloaded swh_storage fixture | ||||
# below | # below | ||||
@pytest.fixture | @pytest.fixture | ||||
def swh_storage(): | def swh_storage(): | ||||
storage_config = { | storage_config = { | ||||
'cls': 'memory', | 'cls': 'memory', | ||||
'args': { | |||||
'journal_writer': { | 'journal_writer': { | ||||
'cls': 'memory', | 'cls': 'memory', | ||||
}, | }, | ||||
}, | |||||
} | } | ||||
storage = get_storage(**storage_config) | storage = get_storage(**storage_config) | ||||
return storage | return storage |