swh_config = '/tmp/pytest-of-jenkins/pytest-0/test_raise_exception0/loader.yml'
requests_mock_datadir = <requests_mock.mocker.Mocker object at 0x7f621ed21978>
mocker = <pytest_mock.plugin.MockFixture object at 0x7f621ed21390>
def test_raise_exception(swh_config, requests_mock_datadir, mocker):
mock_download = mocker.patch("swh.loader.package.loader.download")
mock_download.side_effect = fake_download
loader = NixGuixLoader(sources_url)
res = loader.load()
assert res == {
"status": "eventful",
"snapshot_id": SNAPSHOT1.id.hex(),
}
check_snapshot(SNAPSHOT1, storage=loader.storage)
> assert len(mock_download.mock_calls) == 2
E assert 1 == 2
E +1
E -2
.tox/py3/lib/python3.7/site-packages/swh/loader/package/nixguix/tests/test_nixguix.py:490: AssertionError
TEST RESULT
TEST RESULT
- Run At
- Aug 7 2020, 5:46 PM