swh_storage = <swh.storage.proxies.retry.RetryingProxyStorage object at 0x7f7120d8d5f8>
requests_mock_datadir = <requests_mock.mocker.Mocker object at 0x7f7120b47860>
def test_rpm_first_visit(swh_storage, requests_mock_datadir): #
loader = RpmLoader(swh_storage, URL, packages=PACKAGE_PER_VERSION)
actual_load_status = loader.load()
expected_snapshot_id = "afe532f23049819c001dc31dedc04bd081b7a344"
> assert actual_load_status == {
"status": "eventful",
"snapshot_id": expected_snapshot_id,
}
E AssertionError: assert {'snapshot_id... 'uneventful'} == {'snapshot_id...': 'eventful'}
E Differing items:
E {'snapshot_id': '1a8893e6a86f444e8be8e7bda6cb34fb1735a00e'} != {'snapshot_id': 'afe532f23049819c001dc31dedc04bd081b7a344'}
E {'status': 'uneventful'} != {'status': 'eventful'}
E Full diff:
E {
E - 'snapshot_id': 'afe532f23049819c001dc31dedc04bd081b7a344',
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/rpm/tests/test_rpm.py:25: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Oct 23 2022, 8:27 AM