self = <swh.search.tests.test_in_memory.InmemorySearchTest testMethod=test_origin_last_release_date_update_search>
def test_origin_last_release_date_update_search(self):
self._test_origin_last_revision_release_date_update_search(
> date_type="last_revision_date"
)
.tox/py3/lib/python3.7/site-packages/swh/search/tests/test_search.py:409:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/swh/search/tests/test_search.py:392: in _test_origin_last_revision_release_date_update_search
_check_min_last_revision_release_date(now)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
date = '2021-06-23T16:04:38.628456+00:00'
def _check_min_last_revision_release_date(date):
actual_page = self.search.origin_search(
url_pattern=origin_url, **{f"min_{date_type}": date},
)
assert actual_page.next_page_token is None
results = [r["url"] for r in actual_page.results]
expected_results = [origin_url]
> assert sorted(results) == sorted(expected_results)
E AssertionError: assert [] == ['http://foobar.baz']
E Right contains one more item: 'http://foobar.baz'
E Full diff:
E - ['http://foobar.baz']
E + []
.tox/py3/lib/python3.7/site-packages/swh/search/tests/test_search.py:380: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Jun 23 2021, 6:04 PM