self = <swh.indexer.tests.test_fossology_license.TestFossologyLicenseIndexer testMethod=test_index_one_unknown_sha1>
def test_index_one_unknown_sha1(self):
"""Unknown sha1 are not indexed"""
sha1s = [
self.id1,
"799a5ef812c53907562fe379d4b3851e69c7cb15", # unknown
"800a5ef812c53907562fe379d4b3851e69c7cb15",
] # unknown
# when
self.indexer.run(sha1s, policy_update="update-dups")
# then
expected_results = {
k: v for k, v in self.expected_results.items() if k in sha1s
}
> self.assert_results_ok(sha1s, expected_results)
.tox/py3/lib/python3.7/site-packages/swh/indexer/tests/utils.py:676:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/indexer/tests/utils.py:636: in assert_results_ok
(expected_results, actual_results),
E AssertionError: 1 != 3 : ({'688a5ef812c53907562fe379d4b3851e69c7cb15': {'tool': {'name': 'nomos', 'version': '3.1.0rc2-31-ga2cbb8c', 'configuration': {'command_line': 'nomossa <filepath>'}, 'id': -246889809885201272}, 'licenses': ['AGPL']}}, [{b'h\x8a^\xf8\x12\xc59\x07V/\xe3y\xd4\xb3\x85\x1ei\xc7\xcb\x15': [{'tool': {'id': -246889809885201272, 'name': 'nomos', 'version': '3.1.0rc2-31-ga2cbb8c', 'configuration': {'command_line': 'nomossa <filepath>'}}, 'licenses': ['AGPL']}]}, {b'y\x9a^\xf8\x12\xc59\x07V/\xe3y\xd4\xb3\x85\x1ei\xc7\xcb\x15': []}, {b'\x80\n^\xf8\x12\xc59\x07V/\xe3y\xd4\xb3\x85\x1ei\xc7\xcb\x15': []}])
TEST RESULT
TEST RESULT
- Run At
- Oct 1 2020, 6:16 PM