Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_cassandra.TestCassandraStorageGeneratedData::test_origin_list[100]
Failed

TEST RESULT

Run At
Aug 1 2020, 2:54 PM
Details
self = <swh.storage.tests.test_cassandra.TestCassandraStorageGeneratedData object at 0x7f931ee3e630> swh_storage = <swh.storage.cassandra.storage.CassandraStorage object at 0x7f9320771ef0> swh_origins = [Origin(url='https://example.com/path/with/anchor#id=42'), Origin(url='svn://example.com'), Origin(url='http://example...tuff/'), Origin(url='git://some.long.host.name'), Origin(url='https://some.long.host.name/path/with/qargs?q=1&b'), ...] limit = 100 @pytest.mark.parametrize("limit", [1, 7, 10, 100, 1000]) def test_origin_list(self, swh_storage, swh_origins, limit): returned_origins = [] page_token = None i = 0 while True: actual_page = swh_storage.origin_list(page_token=page_token, limit=limit) assert len(actual_page.results) <= limit returned_origins.extend(actual_page.results) i += 1 page_token = actual_page.next_page_token if page_token is None: assert i * limit >= len(swh_origins) break else: assert len(actual_page.results) == limit > assert returned_origins == swh_origins E AssertionError: assert [Origin(url='...le.com'), ...] == [Origin(url='...?q=1&b'), ...] E At index 0 diff: Origin(url='git://xn--n28h.tld/stuff') != Origin(url='https://example.com/path/with/anchor#id=42') E Full diff: E [ E + Origin(url='git://xn--n28h.tld/stuff'), E + Origin(url='deb://some.long.host.name/path/with/anchor#id=42'), E + Origin(url='git://example.com'), E + Origin(url='mock://example.com/'),... E E ...Full output truncated (202 lines hidden), use '-vv' to show .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:3993: AssertionError