Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.loader.package.deposit.tests.test_deposit::test_deposit_loading_ok_3
Failed

TEST RESULT

Run At
Aug 12 2021, 12:13 PM
Details
swh_storage = <swh.storage.proxies.retry.RetryingProxyStorage object at 0x7ffaa83ee198> deposit_client = <swh.loader.package.deposit.loader.ApiClient object at 0x7ffaa66a6048> requests_mock_datadir = <requests_mock.mocker.Mocker object at 0x7ffaa66a6c50> def test_deposit_loading_ok_3(swh_storage, deposit_client, requests_mock_datadir): """Deposit loading can happen on tarball artifacts as well The latest deposit changes introduce the internal change. """ external_id = "hal-123456" url = f"https://hal-test.archives-ouvertes.fr/{external_id}" deposit_id = 888 loader = DepositLoader(swh_storage, url, deposit_id, deposit_client) actual_load_status = loader.load() expected_snapshot_id = "0ac7b54c042a026389f2087dc16f1d5c644ed0e4" > assert actual_load_status == { "status": "eventful", "snapshot_id": expected_snapshot_id, } E AssertionError: assert {'snapshot_id... 'uneventful'} == {'snapshot_id...': 'eventful'} E Differing items: E {'status': 'uneventful'} != {'status': 'eventful'} E {'snapshot_id': '1a8893e6a86f444e8be8e7bda6cb34fb1735a00e'} != {'snapshot_id': '0ac7b54c042a026389f2087dc16f1d5c644ed0e4'} E Full diff: E { E - 'snapshot_id': '0ac7b54c042a026389f2087dc16f1d5c644ed0e4', E + 'snapshot_id': '1a8893e6a86f444e8be8e7bda6cb34fb1735a00e',... E E ...Full output truncated (5 lines hidden), use '-vv' to show .tox/py3/lib/python3.7/site-packages/swh/loader/package/deposit/tests/test_deposit.py:453: AssertionError