Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Jun 23 2021, 6:04 PM
Details
self = <swh.search.tests.test_in_memory.InmemorySearchTest testMethod=test_origin_url_all_terms> def test_origin_url_all_terms(self): origin_foo_bar_baz = {"url": "http://foo.bar/baz"} origin_foo_bar_foo_bar = {"url": "http://foo.bar/foo.bar"} origins = [origin_foo_bar_baz, origin_foo_bar_foo_bar] self.search.origin_update(origins) self.search.flush() # Only results containing all terms should be returned. actual_page = self.search.origin_search(url_pattern="foo bar baz") assert actual_page.next_page_token is None > assert actual_page.results == [origin_foo_bar_baz] E AssertionError: assert [] == [{'url': 'htt...foo.bar/baz'}] E Right contains one more item: {'url': 'http://foo.bar/baz'} E Full diff: E - [{'url': 'http://foo.bar/baz'}] E + [] .tox/py3/lib/python3.7/site-packages/swh/search/tests/test_search.py:75: AssertionError