Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.web.tests.api.views.test_origin::Tests / Python tests / test_api_origin_intrinsic_metadata
Failed

TEST RESULT

Run At
Jul 7 2021, 3:48 PM
Details
api_client = <rest_framework.test.APIClient object at 0x7fcd46eb3eb8> @given(origin()) > def test_api_origin_intrinsic_metadata(api_client, origin): .tox/py3/lib/python3.7/site-packages/swh/web/tests/api/views/test_origin.py:651: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ api_client = <rest_framework.test.APIClient object at 0x7fcd46eb3eb8> origin = {'archives': ['libtess2.zip'], 'metadata': {'@context': 'https://doi.org/10.5063/schema/codemeta-2.0', 'description': ...tools oriented refactored version of GLU tessellator.'}, 'type': 'git', 'url': 'https://github.com/memononen/libtess2'} @given(origin()) def test_api_origin_intrinsic_metadata(api_client, origin): url = reverse( "api-origin-intrinsic-metadata", url_args={"origin_url": origin["url"]} ) rv = check_api_get_responses(api_client, url, status_code=200) expected_data = {ORIGIN_METADATA_KEY: ORIGIN_METADATA_VALUE} > assert rv.data == expected_data E AssertionError: assert {'@context': ...words': 'git'} == {'keywords': 'git'} E Omitting 1 identical items, use -vv to show E Left contains 2 more items: E {'@context': 'https://doi.org/10.5063/schema/codemeta-2.0', E 'description': 'Game and tools oriented refactored version of GLU ' E 'tessellator.'} E Full diff: E {... E E ...Full output truncated (6 lines hidden), use '-vv' to show .tox/py3/lib/python3.7/site-packages/swh/web/tests/api/views/test_origin.py:659: AssertionError