Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.deposit.tests.cli.test_client::test_cli_client_generate_metadata_ok2
Failed

TEST RESULT

Run At
Feb 21 2022, 4:03 PM
Details
slug = '54a240db-801c-43d1-93d3-afbdb135d2c7' def test_cli_client_generate_metadata_ok2(slug): """Generated metadata is well formed and pass service side metadata checks """ actual_metadata_xml = generate_metadata( "deposit-client", "project-name", authors=["some", "authors"], ) actual_metadata = dict(parse_xml(actual_metadata_xml)) assert actual_metadata["atom:author"] == "deposit-client" assert actual_metadata["atom:title"] == "project-name" assert actual_metadata["atom:updated"] is not None assert actual_metadata["codemeta:name"] == "project-name" assert actual_metadata["codemeta:author"] == [ OrderedDict([("codemeta:name", "some")]), OrderedDict([("codemeta:name", "authors")]), ] assert actual_metadata.get("codemeta:identifier") is None assert actual_metadata.get("swh:deposit") is None checks_ok, detail = check_metadata(actual_metadata) assert checks_ok is True > assert detail is None E AssertionError: assert {'metadata': [{'fields': ['swh:metadata-provenance'], 'summary': 'Suggested fields are missing'}]} is None .tox/py3/lib/python3.7/site-packages/swh/deposit/tests/cli/test_client.py:224: AssertionError