Changeset View
Changeset View
Standalone View
Standalone View
swh/indexer/tests/storage/test_in_memory.py
from unittest import TestCase | from unittest import TestCase | ||||
import pytest | import pytest | ||||
from .test_storage import CommonTestStorage | from .test_storage import CommonTestStorage | ||||
class IndexerTestInMemoryStorage(CommonTestStorage, TestCase): | class IndexerTestInMemoryStorage(CommonTestStorage, TestCase): | ||||
def setUp(self): | def setUp(self): | ||||
self.storage_config = { | self.storage_config = { | ||||
'cls': 'memory', | 'cls': 'memory', | ||||
'args': { | 'args': { | ||||
}, | }, | ||||
} | } | ||||
super().setUp() | super().setUp() | ||||
@pytest.mark.xfail | def reset_storage_tables(self): | ||||
def test_check_config(self): | self.storage = self.storage.__class__() | ||||
pass | |||||
@pytest.mark.xfail | @pytest.mark.xfail | ||||
def test_content_mimetype_missing(self): | def test_check_config(self): | ||||
pass | |||||
@pytest.mark.xfail | |||||
def test_content_mimetype_add__drop_duplicate(self): | |||||
pass | |||||
@pytest.mark.xfail | |||||
def test_content_mimetype_add__update_in_place_duplicate(self): | |||||
pass | |||||
@pytest.mark.xfail | |||||
def test_content_mimetype_get(self): | |||||
pass | pass | ||||
@pytest.mark.xfail | @pytest.mark.xfail | ||||
def test_content_language_missing(self): | def test_content_language_missing(self): | ||||
pass | pass | ||||
@pytest.mark.xfail | @pytest.mark.xfail | ||||
def test_content_language_get(self): | def test_content_language_get(self): | ||||
pass | pass | ||||
@pytest.mark.xfail | @pytest.mark.xfail | ||||
def test_content_language_add__drop_duplicate(self): | def test_content_language_add__drop_duplicate(self): | ||||
pass | pass | ||||
@pytest.mark.xfail | @pytest.mark.xfail | ||||
def test_content_language_add__update_in_place_duplicate(self): | def test_content_language_add__update_in_place_duplicate(self): | ||||
pass | pass | ||||
@pytest.mark.xfail | @pytest.mark.xfail | ||||
def test_content_ctags_missing(self): | |||||
pass | |||||
@pytest.mark.xfail | |||||
def test_content_ctags_get(self): | |||||
pass | |||||
@pytest.mark.xfail | |||||
def test_content_ctags_search(self): | |||||
pass | |||||
@pytest.mark.xfail | |||||
def test_content_ctags_search_no_result(self): | |||||
pass | |||||
@pytest.mark.xfail | |||||
def test_content_ctags_add__add_new_ctags_added(self): | |||||
pass | |||||
@pytest.mark.xfail | |||||
def test_content_ctags_add__update_in_place(self): | |||||
pass | |||||
@pytest.mark.xfail | |||||
def test_content_fossology_license_get(self): | |||||
pass | |||||
@pytest.mark.xfail | |||||
def test_content_fossology_license_add__new_license_added(self): | |||||
pass | |||||
@pytest.mark.xfail | |||||
def test_content_fossology_license_add__update_in_place_duplicate(self): | |||||
pass | |||||
@pytest.mark.xfail | |||||
def test_origin_intrinsic_metadata_get(self): | def test_origin_intrinsic_metadata_get(self): | ||||
pass | pass | ||||
@pytest.mark.xfail | @pytest.mark.xfail | ||||
def test_origin_intrinsic_metadata_add_drop_duplicate(self): | def test_origin_intrinsic_metadata_add_drop_duplicate(self): | ||||
pass | pass | ||||
@pytest.mark.xfail | @pytest.mark.xfail | ||||
Show All 22 Lines | class IndexerTestInMemoryStorage(CommonTestStorage, TestCase): | ||||
@pytest.mark.xfail | @pytest.mark.xfail | ||||
def test_generate_content_mimetype_get_range_no_limit(self, mimetypes): | def test_generate_content_mimetype_get_range_no_limit(self, mimetypes): | ||||
pass | pass | ||||
@pytest.mark.xfail | @pytest.mark.xfail | ||||
def test_generate_content_mimetype_get_range_limit(self, mimetypes): | def test_generate_content_mimetype_get_range_limit(self, mimetypes): | ||||
pass | pass | ||||
@pytest.mark.xfail | |||||
def test_generate_content_fossology_license_get_range_limit_none(self): | |||||
pass | |||||
@pytest.mark.xfail | |||||
def test_generate_content_fossology_license_get_range_no_limit(self): | |||||
pass | |||||
@pytest.mark.xfail | |||||
def test_generate_content_fossology_license_get_range_no_limit_with_filter( | |||||
self): | |||||
pass | |||||
@pytest.mark.xfail | |||||
def test_generate_fossology_license_get_range_limit(self): | |||||
pass |