mocker = <pytest_mock.plugin.MockerFixture object at 0x7fb0a600cc18>
swh_scheduler_celery_app = <Celery celery.tests at 0x7fb0a7cd54a8>
swh_scheduler_celery_worker = <Worker: gen487@0775a3a7cf9b (running)>
swh_config = '/tmp/pytest-of-jenkins/pytest-0/test_tasks_jar_loader_snapshot0/loader.yml'
def test_tasks_jar_loader_snapshot_append(
mocker, swh_scheduler_celery_app, swh_scheduler_celery_worker, swh_config
):
mock_load = mocker.patch("swh.loader.package.maven.loader.MavenLoader.load")
mock_load.return_value = {"status": "eventful"}
res = swh_scheduler_celery_app.send_task(
"swh.loader.package.maven.tasks.LoadMaven",
kwargs=dict(url=MVN_ARTIFACTS[0]["url"], artifacts=[], snapshot_append=True,),
)
assert res
> res.wait()
.tox/py3/lib/python3.7/site-packages/swh/loader/package/maven/tests/test_tasks.py:47:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.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:711: 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 'TypeError'>
value = TypeError("__init__() got an unexpected keyword argument 'snapshot_append'")
tb = None
def reraise(tp, value, tb=None):
"""Reraise exception."""
if value.__traceback__ is not tb:
raise value.with_traceback(tb)
> raise value
E TypeError: __init__() got an unexpected keyword argument 'snapshot_append'
.tox/py3/lib/python3.7/site-packages/vine/utils.py:30: TypeError
TEST RESULT
TEST RESULT
- Run At
- Nov 22 2021, 10:33 PM