mocker = <pytest_mock.plugin.MockerFixture object at 0x7fdb83dc1dd8>
swh_config = '/tmp/pytest-of-jenkins/pytest-0/test_archive_loader0/loader.yml'
swh_scheduler_celery_app = <Celery celery.tests at 0x7fdb894c83c8>
swh_scheduler_celery_worker = <Worker: gen343@4ce29bacb47f (running)>
def test_archive_loader(
mocker, swh_config, swh_scheduler_celery_app, swh_scheduler_celery_worker
):
mock_loader = mocker.patch(
"swh.loader.mercurial.loader.HgArchiveBundle20Loader.load"
)
mock_loader.return_value = {"status": "uneventful"}
res = swh_scheduler_celery_app.send_task(
"swh.loader.mercurial.tasks.LoadArchiveMercurial",
kwargs={
"url": "another_url",
"archive_path": "/some/tar.tgz",
"visit_date": "now",
},
)
assert res
> res.wait()
.tox/py3/lib/python3.7/site-packages/swh/loader/mercurial/tests/test_tasks.py:43:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/py3/lib/python3.7/site-packages/celery/result.py:230: in get
on_message=on_message,
.tox/py3/lib/python3.7/site-packages/celery/backends/base.py:659: in wait_for_pending
return result.maybe_throw(propagate=propagate, callback=callback)
.tox/py3/lib/python3.7/site-packages/celery/result.py:335: in maybe_throw
self.throw(value, self._to_remote_traceback(tb))
.tox/py3/lib/python3.7/site-packages/celery/result.py:328: in throw
self.on_ready.throw(*args, **kwargs)
.tox/py3/lib/python3.7/site-packages/vine/promises.py:234: in throw
reraise(type(exc), exc, tb)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tp = <class 'KeyError'>, value = KeyError('PATH'), tb = None
def reraise(tp, value, tb=None):
"""Reraise exception."""
if value.__traceback__ is not tb:
raise value.with_traceback(tb)
> raise value
E KeyError: 'PATH'
.tox/py3/lib/python3.7/site-packages/vine/utils.py:30: KeyError
TEST RESULT
TEST RESULT
- Run At
- Feb 25 2021, 3:58 PM