Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/tests/test_in_memory.py
Show All 36 Lines | def test_content_add_metadata_db(self): | ||||
pass | pass | ||||
@pytest.mark.skip( | @pytest.mark.skip( | ||||
'not implemented, see https://forge.softwareheritage.org/T1633') | 'not implemented, see https://forge.softwareheritage.org/T1633') | ||||
def test_skipped_content_add(self): | def test_skipped_content_add(self): | ||||
pass | pass | ||||
@pytest.mark.db | |||||
@pytest.mark.property_based | @pytest.mark.property_based | ||||
class PropTestInMemoryStorage(CommonPropTestStorage, unittest.TestCase): | class PropTestInMemoryStorage(CommonPropTestStorage, unittest.TestCase): | ||||
"""Test the in-memory storage API | """Test the in-memory storage API | ||||
This class doesn't define any tests as we want identical | This class doesn't define any tests as we want identical | ||||
functionality between local and remote storage. All the tests are | functionality between local and remote storage. All the tests are | ||||
therefore defined in CommonPropTestStorage. | therefore defined in CommonPropTestStorage. | ||||
""" | """ | ||||
def setUp(self): | def setUp(self): | ||||
super().setUp() | super().setUp() | ||||
self.storage = Storage() | self.storage = Storage() | ||||
def reset_storage_tables(self): | def reset_storage_tables(self): | ||||
self.storage = Storage() | self.storage = Storage() |