Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Apr 18 2022, 11:31 AM
Details
self = <swh.indexer.tests.test_metadata.Metadata testMethod=test_npm_bugs_normalization> def test_npm_bugs_normalization(self): # valid dictionary package_json = b"""{ "name": "foo", "bugs": { "url": "https://github.com/owner/project/issues", "email": "foo@example.com" } }""" result = self.npm_mapping.translate(package_json) self.assertEqual( result, { "@context": "https://doi.org/10.5063/schema/codemeta-2.0", "name": "foo", "issueTracker": "https://github.com/owner/project/issues", > "type": "SoftwareSourceCode", }, ) E AssertionError: None != {'@context': 'https://doi.org/10.5063/sch[117 chars]ode'} .tox/py3/lib/python3.7/site-packages/swh/indexer/tests/test_metadata.py:296: AssertionError