swh_storage = <swh.storage.proxies.retry.RetryingProxyStorage object at 0x7fd049f3bd30>
requests_mock_datadir = <requests_mock.mocker.Mocker object at 0x7fd049f660b8>
expected_stats = {'content': 421, 'directory': 40, 'origin': 1, 'origin_visit': 1, ...}
def test_rpm_multiple_visits(swh_storage, requests_mock_datadir, expected_stats):
loader = RpmLoader(swh_storage, ORIGIN, packages=PACKAGES)
# First run: Discovered exactly 1 package
load_status = loader.load()
> assert 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:213: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Dec 20 2022, 10:40 AM