Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.search.tests.test_in_memory.InmemorySearchTest::test_origin_intrinsic_metadata_matches_cross_fields
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_matches_cross_fields> def test_origin_intrinsic_metadata_matches_cross_fields(self): """Checks the backend finds results even if the two words in the query are each in a different field.""" origin1 = {"url": "http://origin1"} self.search.origin_update( [ { **origin1, "intrinsic_metadata": { "@context": "https://doi.org/10.5063/schema/codemeta-2.0", "description": "foo bar", "author": "John Doe", }, }, ] ) self.search.flush() actual_page = self.search.origin_search(metadata_pattern="foo John") assert actual_page.next_page_token is None > assert actual_page.results == [origin1] E AssertionError: assert [] == [{'url': 'http://origin1'}] E Right contains one more item: {'url': 'http://origin1'} E Full diff: E - [{'url': 'http://origin1'}] E + [] .tox/py3/lib/python3.7/site-packages/swh/search/tests/test_search.py:578: AssertionError