Changeset View
Changeset View
Standalone View
Standalone View
swh/indexer/tests/test_fossology_license.py
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | "tools": { | ||||
}, | }, | ||||
}, | }, | ||||
} # type: Dict[str, Any] | } # type: Dict[str, Any] | ||||
RANGE_CONFIG = dict(list(CONFIG.items()) + [("write_batch_size", 100)]) | RANGE_CONFIG = dict(list(CONFIG.items()) + [("write_batch_size", 100)]) | ||||
class TestFossologyLicenseIndexer(CommonContentIndexerTest, unittest.TestCase): | class TestFossologyLicenseIndexer(CommonContentIndexerTest, unittest.TestCase): | ||||
"""Language indexer test scenarios: | """Fossology license indexer test scenarios: | ||||
vlorentz: heh | |||||
- Known sha1s in the input list have their data indexed | - Known sha1s in the input list have their data indexed | ||||
- Unknown sha1 in the input list are not indexed | - Unknown sha1 in the input list are not indexed | ||||
""" | """ | ||||
def get_indexer_results(self, ids): | def get_indexer_results(self, ids): | ||||
yield from self.idx_storage.content_fossology_license_get(ids) | yield from self.idx_storage.content_fossology_license_get(ids) | ||||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |
heh