Changeset View
Changeset View
Standalone View
Standalone View
swh/storage/tests/test_api_client.py
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | def setUp(self): | ||||
super().setUp() | super().setUp() | ||||
self.journal_writer = self.__storage.journal_writer | self.journal_writer = self.__storage.journal_writer | ||||
def tearDown(self): | def tearDown(self): | ||||
super().tearDown() | super().tearDown() | ||||
self._get_storage_patcher.stop() | self._get_storage_patcher.stop() | ||||
@pytest.mark.network | |||||
class TestRemoteMemStorage(CommonTestStorage, RemoteMemStorageFixture): | class TestRemoteMemStorage(CommonTestStorage, RemoteMemStorageFixture): | ||||
@pytest.mark.skip('refresh_stat_counters not available in the remote api.') | @pytest.mark.skip('refresh_stat_counters not available in the remote api.') | ||||
def test_stat_counters(self): | def test_stat_counters(self): | ||||
pass | pass | ||||
@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_db(self): | def test_skipped_content_add_db(self): | ||||
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 | ||||
@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.db | ||||
@pytest.mark.network | |||||
class TestRemotePgStorage(CommonTestStorage, RemotePgStorageFixture): | class TestRemotePgStorage(CommonTestStorage, RemotePgStorageFixture): | ||||
@pytest.mark.skip('refresh_stat_counters not available in the remote api.') | @pytest.mark.skip('refresh_stat_counters not available in the remote api.') | ||||
def test_stat_counters(self): | def test_stat_counters(self): | ||||
pass | pass | ||||
@pytest.mark.db | @pytest.mark.db | ||||
@pytest.mark.property_based | @pytest.mark.property_based | ||||
class PropTestRemotePgStorage(CommonPropTestStorage, RemotePgStorageFixture): | class PropTestRemotePgStorage(CommonPropTestStorage, RemotePgStorageFixture): | ||||
@pytest.mark.skip('too slow') | @pytest.mark.skip('too slow') | ||||
def test_add_arbitrary(self): | def test_add_arbitrary(self): | ||||
pass | pass |