Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.lister.aur.tests.test_lister::test_aur_lister
Failed

TEST RESULT

Run At
Jun 24 2022, 12:30 PM
Details
datadir = '/var/lib/jenkins/workspace/DLS/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/lister/aur/tests/data' requests_mock_datadir = <requests_mock.mocker.Mocker object at 0x7ff428cdaa90> swh_scheduler = <swh.scheduler.backend.SchedulerBackend object at 0x7ff428cdaeb8> def test_aur_lister(datadir, requests_mock_datadir, swh_scheduler): lister = AurLister(scheduler=swh_scheduler) res = lister.run() assert res.pages == 4 assert res.origins == 4 scheduler_origins_sorted = sorted( swh_scheduler.get_listed_origins(lister.lister_obj.id).results, key=lambda x: x.url, ) expected_origins_sorted = sorted(expected_origins, key=lambda x: x.get("url")) assert len(scheduler_origins_sorted) == len(expected_origins_sorted) > assert [ ( scheduled.visit_type, scheduled.url, scheduled.extra_loader_arguments.get("artifacts"), ) for scheduled in scheduler_origins_sorted ] == [ ( "aur", expected.get("url"), expected.get("extra_loader_arguments").get("artifacts"), ) for expected in expected_origins_sorted ] E AssertionError: assert [('aur', 'htt...r.gz', ...}])] == [('aur', 'htt...r.gz', ...}])] E At index 0 diff: ('aur', 'https://aur.archlinux.org/hg-evolve.git', [{'url': 'https://aur.archlinux.org/hg-evolve.git', 'pkgname': 'hg-evolve', 'version': '10.5.1-1', 'project_url': 'https://www.mercurial-scm.org/doc/evolution/', 'snapshot_url': 'https://aur.archlinux.org/cgit/aur.git/snapshot/hg-evolve.tar.gz', 'last_modified': '2022-04-27T20:02:56'}]) != ('aur', 'https://aur.archlinux.org/hg-evolve.git', [{'url': 'https://aur.archlinux.org/hg-evolve.git', 'pkgname': 'hg-evolve', 'version': '10.5.1-1', 'project_url': 'https://www.mercurial-scm.org/doc/evolution/', 'sna... E E ...Full output truncated (48 lines hidden), use '-vv' to show .tox/py3/lib/python3.7/site-packages/swh/lister/aur/tests/test_lister.py:90: AssertionError