Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Apr 18 2022, 11:41 AM
Details
self = <swh.indexer.tests.test_metadata.Metadata testMethod=test_compute_metadata_npm> def test_compute_metadata_npm(self): """ testing only computation of metadata with hard_mapping_npm """ # given content = b""" { "name": "test_metadata", "version": "0.0.2", "description": "Simple package.json test for indexer", "repository": { "type": "git", "url": "https://github.com/moranegg/metadata_test" }, "author": { "email": "moranegg@example.com", "name": "Morane G" } } """ declared_metadata = { "@context": "https://doi.org/10.5063/schema/codemeta-2.0", "type": "SoftwareSourceCode", "name": "test_metadata", "version": "0.0.2", "description": "Simple package.json test for indexer", "codeRepository": "git+https://github.com/moranegg/metadata_test", "author": [ { "type": "Person", "name": "Morane G", "email": "moranegg@example.com", } ], } # when result = self.npm_mapping.translate(content) # then > self.assertEqual(declared_metadata, result) E AssertionError: {'@context': 'https://doi.org/10.5063/sch[295 chars]m'}]} != None .tox/py3/lib/python3.7/site-packages/swh/indexer/tests/test_metadata.py:204: AssertionError