self = <swh.indexer.tests.test_fossology_license.TestFossologyLicensePartitionIndexer testMethod=test_generate_content_get>
def test_generate_content_get(self):
"""Optimal indexing should result in indexed data
"""
partition_id = 0
nb_partitions = 4
actual_results = self.indexer.run(
> partition_id, nb_partitions, skip_existing=False
)
.tox/py3/lib/python3.7/site-packages/swh/indexer/tests/utils.py:755:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/indexer/indexer.py:478: in run
list(contents), policy_update="update-dups"
.tox/py3/lib/python3.7/site-packages/swh/indexer/fossology_license.py:133: in persist_index_computations
results, conflict_update=(policy_update == "update-dups")
.tox/py3/lib/python3.7/site-packages/swh/indexer/storage/in_memory.py:377: in content_fossology_license_add
conflict_update,
.tox/py3/lib/python3.7/site-packages/swh/indexer/storage/in_memory.py:205: in add
data = list(data)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
licenses = {'id': b'\x93fot\xf1\xcfc\\\x8c\x8a\xc1\x18\x87\x9d\xa6\xecV#\xc4\x10', 'indexer_configuration_id': 234790433382459408, 'licenses': None}
def fossology_license_to_db(licenses):
"""Similar to ctags_to_db, but for licenses."""
id = licenses["id"]
tool_id = licenses["indexer_configuration_id"]
> for license in licenses["licenses"]:
E TypeError: 'NoneType' object is not iterable
.tox/py3/lib/python3.7/site-packages/swh/indexer/storage/converters.py:49: TypeError
TEST RESULT
TEST RESULT
- Run At
- Oct 6 2020, 1:33 PM