Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/tests/test_in_memory.py
Show All 23 Lines | def setUp(self): | ||||
self.storage = Storage(journal_writer={'cls': 'inmemory'}) | self.storage = Storage(journal_writer={'cls': 'inmemory'}) | ||||
self.journal_writer = self.storage.journal_writer | self.journal_writer = self.storage.journal_writer | ||||
@pytest.mark.skip('postgresql-specific test') | @pytest.mark.skip('postgresql-specific test') | ||||
def test_content_add_db(self): | def test_content_add_db(self): | ||||
pass | pass | ||||
@pytest.mark.skip('postgresql-specific test') | @pytest.mark.skip('postgresql-specific test') | ||||
def test_skipped_content_add(self): | def test_skipped_content_add_db(self): | ||||
olasd: looks like for consistency this test should be renamed `_db`, not `_pgsql` | |||||
pass | pass | ||||
@pytest.mark.skip('postgresql-specific test') | @pytest.mark.skip('postgresql-specific test') | ||||
def test_content_add_metadata_db(self): | def test_content_add_metadata_db(self): | ||||
pass | pass | ||||
Not Done Inline ActionsPlease reference the task here? olasd: Please reference the task here? | |||||
@pytest.mark.skip( | |||||
'not implemented, see https://forge.softwareheritage.org/T1633') | |||||
def test_skipped_content_add(self): | |||||
pass | |||||
@pytest.mark.db | @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() |
looks like for consistency this test should be renamed _db, not _pgsql