Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.loader.package.opam.tests.test_opam::test_opam_loader_many_version
Failed

TEST RESULT

Run At
Sep 22 2021, 9:47 AM
Details
tmpdir = local('/tmp/pytest-of-jenkins/pytest-0/test_opam_loader_many_version0') requests_mock_datadir = <requests_mock.mocker.Mocker object at 0x7fd7e5ec7dd8> datadir = '/var/lib/jenkins/workspace/DLDBASE/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/loader/package/opam/tests/data' swh_storage = <swh.storage.proxies.retry.RetryingProxyStorage object at 0x7fd7e52ef898> def test_opam_loader_many_version(tmpdir, requests_mock_datadir, datadir, swh_storage): opam_url = f"file://{datadir}/fake_opam_repo" opam_root = tmpdir # the directory should NOT exist, we just need an unique name, so we delete it rmtree(tmpdir) opam_instance = "loadertest" opam_package = "directories" url = f"opam+{opam_url}/packages/{opam_package}" loader = OpamLoader( swh_storage, url, opam_root, opam_instance, opam_url, opam_package ) actual_load_status = loader.load() expected_snapshot_id = hash_to_bytes("1b49be175dcf17c0f568bcd7aac3d4faadc41249") > assert actual_load_status == { "status": "eventful", "snapshot_id": expected_snapshot_id.hex(), } E AssertionError: assert {'snapshot_id...': 'eventful'} == {'snapshot_id...': 'eventful'} E Omitting 1 identical items, use -vv to show E Differing items: E {'snapshot_id': '4c9d7af57ab08aa22a908c17563675ba6eee67b9'} != {'snapshot_id': '1b49be175dcf17c0f568bcd7aac3d4faadc41249'} E Full diff: E { E - 'snapshot_id': '1b49be175dcf17c0f568bcd7aac3d4faadc41249', E + 'snapshot_id': '4c9d7af57ab08aa22a908c17563675ba6eee67b9',... E E ...Full output truncated (3 lines hidden), use '-vv' to show .tox/py3/lib/python3.7/site-packages/swh/loader/package/opam/tests/test_opam.py:91: AssertionError