Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9337099
D4399.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D4399.diff
View Options
diff --git a/swh/indexer/tests/storage/test_storage.py b/swh/indexer/tests/storage/test_storage.py
--- a/swh/indexer/tests/storage/test_storage.py
+++ b/swh/indexer/tests/storage/test_storage.py
@@ -518,14 +518,6 @@
def test_add_deadlock(self):
pass
- @pytest.mark.skip
- def test_add__duplicate_twice(self):
- pass
-
- @pytest.mark.skip
- def test_get(self):
- pass
-
def test_content_ctags_search(
self, swh_indexer_storage_with_data: Tuple[IndexerStorageInterface, Any]
) -> None:
@@ -779,12 +771,30 @@
row_class = RevisionIntrinsicMetadataRow
-class TestIndexerStorageContentFossologyLicense:
+class TestIndexerStorageContentFossologyLicense(StorageETypeTester):
endpoint_type = "content_fossology_license"
tool_name = "nomos"
+ example_data = [
+ {"license": "Apache-2.0"},
+ {"license": "BSD-2-Clause"},
+ ]
row_class = ContentLicenseRow
+ # the following tests are disabled because licenses behaves differently
+ @pytest.mark.skip
+ def test_add__update_in_place_duplicate(self):
+ pass
+
+ @pytest.mark.skip
+ def test_add_deadlock(self):
+ pass
+
+ # content_fossology_license_missing does not exist
+ @pytest.mark.skip
+ def test_missing(self):
+ pass
+
def test_content_fossology_license_add__new_license_added(
self, swh_indexer_storage_with_data: Tuple[IndexerStorageInterface, Any]
) -> None:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jul 3 2025, 7:53 AM (10 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3225040
Attached To
D4399: Un-skip some ctags and license storage tests.
Event Timeline
Log In to Comment