swh_storage = <swh.storage.proxies.retry.RetryingProxyStorage object at 0x7ffaa6562048>
requests_mock_datadir = <requests_mock.mocker.Mocker object at 0x7ffaa66119e8>
mocker = <pytest_mock.plugin.MockerFixture object at 0x7ffaa6611630>
def test_raise_exception(swh_storage, requests_mock_datadir, mocker):
mock_download = mocker.patch("swh.loader.package.loader.download")
mock_download.side_effect = fake_download
loader = NixGuixLoader(swh_storage, sources_url)
res = loader.load()
> assert res == {
"status": "eventful",
"snapshot_id": SNAPSHOT1.id.hex(),
}
E AssertionError: assert {'snapshot_id... 'uneventful'} == {'snapshot_id...': 'eventful'}
E Differing items:
E {'status': 'uneventful'} != {'status': 'eventful'}
E {'snapshot_id': '4257fa2350168c6bfec726a06452ea27a2c0cb33'} != {'snapshot_id': '0c5881c74283793ebe9a09a105a9381e41380383'}
E Full diff:
E {
E - 'snapshot_id': '0c5881c74283793ebe9a09a105a9381e41380383',
E + 'snapshot_id': '4257fa2350168c6bfec726a06452ea27a2c0cb33',...
E
E ...Full output truncated (5 lines hidden), use '-vv' to show
.tox/py3/lib/python3.7/site-packages/swh/loader/package/nixguix/tests/test_nixguix.py:534: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Aug 12 2021, 12:13 PM