swh_storage = <swh.storage.proxies.retry.RetryingProxyStorage object at 0x7fd048cd84e0>
requests_mock_datadir = <requests_mock.mocker.Mocker object at 0x7fd049f3b978>
expected_stats = {'content': 421, 'directory': 40, 'origin': 1, 'origin_visit': 1, ...}
def test_rpm_first_visit(swh_storage, requests_mock_datadir, expected_stats):
loader = RpmLoader(swh_storage, ORIGIN, packages=PACKAGES)
actual_load_status = loader.load()
> assert actual_load_status == {"status": "eventful", "snapshot_id": snapshot_id}
E AssertionError: assert {'status': 'failed'} == {'snapshot_id...': 'eventful'}
E Differing items:
E {'status': 'failed'} != {'status': 'eventful'}
E Right contains 1 more item:
E {'snapshot_id': 'e3b199390a96f70afe73137f5082e34f0deb4872'}
E Full diff:
E {
E + 'status': 'failed',...
E
E ...Full output truncated (4 lines hidden), use '-vv' to show
.tox/py3/lib/python3.7/site-packages/swh/loader/package/rpm/tests/test_rpm.py:203: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Dec 20 2022, 10:40 AM