Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.search.tests.test_api_client.TestRemoteSearch::test_origin_url_unique_word_prefix_multiple_results
Failed

TEST RESULT

Run At
Dec 4 2020, 10:38 AM
Details
self = <swh.search.tests.test_api_client.TestRemoteSearch testMethod=test_origin_url_unique_word_prefix_multiple_results> def test_origin_url_unique_word_prefix_multiple_results(self): origin_foobar_baz = {"url": "http://foobar.baz"} origin_barbaz_qux = {"url": "http://barbaz.qux"} origin_qux_quux = {"url": "http://qux.quux"} self.search.origin_update( [origin_foobar_baz, origin_barbaz_qux, origin_qux_quux] ) self.search.flush() actual_page = self.search.origin_search(url_pattern="qu") assert actual_page.next_page_token is None results = [r["url"] for r in actual_page.results] expected_results = [o["url"] for o in [origin_qux_quux, origin_barbaz_qux]] > assert sorted(results) == sorted(expected_results) E AssertionError: assert ['http://qux.quux'] == ['http://barb...p://qux.quux'] E At index 0 diff: 'http://qux.quux' != 'http://barbaz.qux' E Right contains one more item: 'http://qux.quux' E Full diff: E - ['http://barbaz.qux', 'http://qux.quux'] E + ['http://qux.quux'] .tox/py3/lib/python3.7/site-packages/swh/search/tests/test_search.py:52: AssertionError