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
Sep 3 2021, 2:41 PM
Details
swh_storage = <swh.storage.proxies.retry.RetryingProxyStorage object at 0x7f4a795480b8> requests_mock = <requests_mock.mocker.Mocker object at 0x7f4a795321d0> 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() assert actual_load_status["status"] == "eventful" expected_snapshot_first_visit_id = hash_to_bytes( "677b0280cbe9e650c9dfa80fbb1ab7ebb1603c86" ) print(f"Debug actual_snapshot is {actual_load_status['snapshot_id']}.") > assert ( hash_to_bytes(actual_load_status["snapshot_id"]) == expected_snapshot_first_visit_id ) E AssertionError: assert b'\xae\x8fv\x...e2J\x11%/\x83' == b'g{\x02\x80\...xeb\xb1`<\x86' E At index 0 diff: b'\xae' != b'g' E Full diff: E - b'g{\x02\x80\xcb\xe9\xe6P\xc9\xdf\xa8\x0f\xbb\x1a\xb7\xeb\xb1`<\x86' E + b'\xae\x8fv\xfe\x87\x9e\xa0@1!\x82\xc0-\xae2J\x11%/\x83' .tox/py3/lib/python3.7/site-packages/swh/loader/package/jar/tests/test_jar.py:168: AssertionError