Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.loader.package.pypi.tests.test_pypi::test_pypi_visit_with_missing_artifact
Failed

TEST RESULT

Run At
Aug 12 2021, 12:13 PM
Details
swh_storage = <swh.storage.proxies.retry.RetryingProxyStorage object at 0x7ffaa85fa3c8> requests_mock_datadir_missing_one = <requests_mock.mocker.Mocker object at 0x7ffaa6562748> def test_pypi_visit_with_missing_artifact( swh_storage, requests_mock_datadir_missing_one ): """Load a pypi project with some missing artifacts ends up with 1 snapshot """ url = "https://pypi.org/project/0805nexter" loader = PyPILoader(swh_storage, url) actual_load_status = loader.load() expected_snapshot_id = hash_to_bytes("dd0e4201a232b1c104433741dbf45895b8ac9355") > assert actual_load_status == { "status": "eventful", "snapshot_id": expected_snapshot_id.hex(), } E AssertionError: assert {'snapshot_id... 'uneventful'} == {'snapshot_id...': 'eventful'} E Differing items: E {'status': 'uneventful'} != {'status': 'eventful'} E {'snapshot_id': '1a8893e6a86f444e8be8e7bda6cb34fb1735a00e'} != {'snapshot_id': 'dd0e4201a232b1c104433741dbf45895b8ac9355'} E Full diff: E { E - 'snapshot_id': 'dd0e4201a232b1c104433741dbf45895b8ac9355', 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/pypi/tests/test_pypi.py:377: AssertionError