Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Apr 18 2022, 11:41 AM
Details
self = <swh.indexer.tests.test_metadata.Metadata testMethod=test_npm_repository_normalization> def test_npm_repository_normalization(self): # normal package_json = b"""{ "name": "foo", "repository": { "type" : "git", "url" : "https://github.com/npm/cli.git" } }""" result = self.npm_mapping.translate(package_json) self.assertEqual( result, { "@context": "https://doi.org/10.5063/schema/codemeta-2.0", "name": "foo", "codeRepository": "git+https://github.com/npm/cli.git", > "type": "SoftwareSourceCode", }, ) E AssertionError: None != {'@context': 'https://doi.org/10.5063/sch[114 chars]ode'} .tox/py3/lib/python3.7/site-packages/swh/indexer/tests/test_metadata.py:349: AssertionError