Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.loader.package.jar.tests.test_jar::test_jar_visit_with_release_artifact_no_prior_visit
Failed

TEST RESULT

Run At
Aug 30 2021, 12:21 PM
Details
swh_storage = <swh.storage.proxies.retry.RetryingProxyStorage object at 0x7fa602e96a20> requests_mock = <requests_mock.mocker.Mocker object at 0x7fa602eb5eb8> data_jar_1 = b'PK\x03\x04\n\x00\x00\x08\x08\x00\xba\\\xb7L\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\t\x00\x00\x00META-INF/\x...*\x00\x00al/aldi/sprova4j/models/Execution.javaPK\x05\x06\x00\x00\x00\x00#\x00#\x00\xe2\n\x00\x00\xf4,\x00\x00\x00\x00' def test_jar_visit_with_release_artifact_no_prior_visit( swh_storage, requests_mock, data_jar_1 ): """With no prior visit, loading a jar ends up with 1 snapshot """ requests_mock.get(MVN_ARTIFACTS[0]["url"], content=data_jar_1) loader = JarLoader( swh_storage, MVN_ARTIFACTS[0]["url"], artifacts=[MVN_ARTIFACTS[0]] ) actual_load_status = loader.load() print(f"LOAD STATUS {actual_load_status.items()}") print(f"LOAD STATUS {actual_load_status.keys()}") assert actual_load_status["status"] == "eventful" expected_snapshot_first_visit_id = hash_to_bytes( "ebbada124eb7c04e9b6069b0c8e1f40be963ecdf" ) > assert ( hash_to_bytes(actual_load_status["snapshot_id"]) == expected_snapshot_first_visit_id ) E AssertionError: assert b'\xd5=\xf6\x...xe5\xc2w\xe6A' == b'\xeb\xba\xd...\xe9c\xec\xdf' E At index 0 diff: b'\xd5' != b'\xeb' E Full diff: E - b'\xeb\xba\xda\x12N\xb7\xc0N\x9b`i\xb0\xc8\xe1\xf4\x0b\xe9c\xec\xdf' E + b'\xd5=\xf6\xa4\x1c\xef4\x9c\x97\x95_r]\xbfs\xe5\xc2w\xe6A' .tox/py3/lib/python3.7/site-packages/swh/loader/package/jar/tests/test_jar.py:169: AssertionError