Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.search.tests.test_in_memory.InmemorySearchTest::test_origin_intrinsic_metadata_description
Failed

TEST RESULT

Run At
Jun 23 2021, 6:04 PM
Details
self = <swh.search.tests.test_in_memory.InmemorySearchTest testMethod=test_origin_intrinsic_metadata_description> def test_origin_intrinsic_metadata_description(self): origin1_nothin = {"url": "http://origin1"} origin2_foobar = {"url": "http://origin2"} origin3_barbaz = {"url": "http://origin3"} self.search.origin_update( [ {**origin1_nothin, "intrinsic_metadata": {},}, { **origin2_foobar, "intrinsic_metadata": { "@context": "https://doi.org/10.5063/schema/codemeta-2.0", "description": "foo bar", }, }, { **origin3_barbaz, "intrinsic_metadata": { "@context": "https://doi.org/10.5063/schema/codemeta-2.0", "description": "bar baz", }, }, ] ) self.search.flush() actual_page = self.search.origin_search(metadata_pattern="foo") assert actual_page.next_page_token is None > assert actual_page.results == [origin2_foobar] E AssertionError: assert [] == [{'url': 'http://origin2'}] E Right contains one more item: {'url': 'http://origin2'} E Full diff: E - [{'url': 'http://origin2'}] E + [] .tox/py3/lib/python3.7/site-packages/swh/search/tests/test_search.py:494: AssertionError