Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.indexer.tests.test_metadata.Metadata::test_detect_metadata_codemeta_json_uppercase
Failed

TEST RESULT

Run At
Apr 18 2022, 8:43 PM
Details
self = <swh.indexer.tests.test_metadata.Metadata testMethod=test_detect_metadata_codemeta_json_uppercase> def test_detect_metadata_codemeta_json_uppercase(self): # given df = [ { "sha1_git": b"abc", "name": b"index.html", "target": b"abc", "length": 897, "status": "visible", "type": "file", "perms": 33188, "dir_id": b"dir_a", "sha1": b"bcd", }, { "sha1_git": b"aab", "name": b"CODEMETA.json", "target": b"aab", "length": 712, "status": "visible", "type": "file", "perms": 33188, "dir_id": b"dir_a", "sha1": b"bcd", }, ] # when results = detect_metadata(df) expected_results = {"CodemetaMapping": [b"bcd"]} # then > self.assertEqual(expected_results, results) E AssertionError: {'CodemetaMapping': [b'bcd']} != {} E - {'CodemetaMapping': [b'bcd']} E + {} .tox/py3/lib/python3.7/site-packages/swh/indexer/tests/test_metadata.py:472: AssertionError