Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Jun 10 2022, 1:13 PM
Details
datadir = '/var/lib/jenkins/workspace/DLS/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/lister/arch/tests/data' requests_mock_datadir = <requests_mock.mocker.Mocker object at 0x7f110bfc2b00> swh_scheduler = <swh.scheduler.backend.SchedulerBackend object at 0x7f110bfc26d8> def test_arch_lister(datadir, requests_mock_datadir, swh_scheduler): lister = ArchLister(scheduler=swh_scheduler) res = lister.run() assert res.pages == 9 assert res.origins == 12 expected_origins_sorted = sorted(expected_origins, key=lambda x: x.get("url")) scheduler_origins_sorted = sorted( swh_scheduler.get_listed_origins(lister.lister_obj.id).results, key=lambda x: x.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 ] == [ ( "arch", expected.get("url"), expected.get("extra_loader_arguments").get("artifacts"), ) for expected in expected_origins_sorted ] E AssertionError: assert [('arch', 'ht...}, ...]), ...] == [('arch', 'ht...}, ...]), ...] E At index 6 diff: ('arch', 'https://archlinuxarm.org/packages/aarch64/gzip', [{'url': 'https://mirror.archlinuxarm.org/aarch64/core/gzip-1.12-1-aarch64.pkg.tar.xz', 'arch': 'aarch64', 'name': 'gzip', 'repo': 'core', 'length': '79640', 'version': '1.12-1', 'filename': 'gzip-1.12-1-aarch64.pkg.tar.xz', 'last_modified': '2022-04-07T21:08:14'}]) != ('arch', 'https://archlinuxarm.org/packages/aarch64/gzip', [{'url': 'https://mirror.archlinuxarm.org/aarch64/core/gzip-1.12-1-aarch64.pkg.tar.xz', 'arch': 'aarch64', 'name': 'gzip', 'repo': 'core', 'length': '79640', 'version': '1... E E ...Full output truncated (809 lines hidden), use '-vv' to show .tox/py3/lib/python3.7/site-packages/swh/lister/arch/tests/test_lister.py:1074: AssertionError