Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.indexer.tests.test_mimetype.TestMimetypeIndexer::test_index_one_unknown_sha1
Failed

TEST RESULT

Run At
Jul 22 2022, 11:51 AM
Details
self = <swh.indexer.tests.test_mimetype.TestMimetypeIndexer 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) # then expected_results = [res for res in self.expected_results if res.id in sha1s] > self.assert_results_ok(sha1s, expected_results) .tox/py3/lib/python3.7/site-packages/swh/indexer/tests/utils.py:714: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/indexer/tests/utils.py:684: in assert_results_ok self.assertEqual(expected_results, actual_results) E AssertionError: Lists differ: [Cont[48 chars]ol={'configuration': {'type': 'library', 'debi[213 chars]ii')] != [Cont[48 chars]ol={'id': -8397989880765323683, 'name': 'file'[206 chars]ii')] E E First differing element 0: E Conte[47 chars]ol={'configuration': {'type': 'library', 'debi[212 chars]cii') E Conte[47 chars]ol={'id': -8397989880765323683, 'name': 'file'[205 chars]cii') E E - [ContentMimetypeRow(indexer_configuration_id=None, tool={'configuration': {'type': 'library', 'debian-package': 'python3-magic'}, 'version': '1:5.30-1+deb9u1', 'name': 'file', 'id': -8397989880765323683}, id=b'\x0fu\xaeO}u\xd4.\x12\xc1\xb6W!\xec\xae^v\xfe\xe2#', mimetype='text/x-script.python', encoding='us-ascii')] E + [ContentMimetypeRow(indexer_configuration_id=None, tool={'id': -8397989880765323683, 'name': 'file', 'version': '1:5.30-1+deb9u1', 'configuration': {'type': 'library', 'debian-package': 'python3-magic'}}, id=b'\x0fu\xaeO}u\xd4.\x12\xc1\xb6W!\xec\xae^v\xfe\xe2#', mimetype='text/x-python', encoding='us-ascii')]