self = <swh.indexer.tests.test_fossology_license.TestFossologyLicenseIndexer testMethod=test_index>
def test_index(self):
"""Known sha1 have their data indexed
"""
sha1s = [self.id0, self.id1, self.id2]
# when
self.indexer.run(sha1s, policy_update="update-dups")
> self.assert_results_ok(sha1s)
.tox/py3/lib/python3.7/site-packages/swh/indexer/tests/utils.py:653:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/indexer/tests/utils.py:642: in assert_results_ok
self.assertEqual(indexed_data, expected_data)
E AssertionError: Lists differ: [] != [{'tool': {'name': 'nomos', 'version': '3.[117 chars] []}]
E
E Second list contains 1 additional elements.
E First extra element 0:
E {'tool': {'name': 'nomos', 'version': '3.1.0rc2-31-ga2cbb8c', 'configuration': {'command_line': 'nomossa <filepath>'}, 'id': -246889809885201272}, 'licenses': []}
E
E - []
E + [{'licenses': [],
E + 'tool': {'configuration': {'command_line': 'nomossa <filepath>'},
E + 'id': -246889809885201272,
E + 'name': 'nomos',
E + 'version': '3.1.0rc2-31-ga2cbb8c'}}]
TEST RESULT
TEST RESULT
- Run At
- Oct 1 2020, 6:16 PM