Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.scheduler.tests.test_recurrent_visits::test_cli_schedule_recurrent_unknown_visit_type
Failed

TEST RESULT

Run At
Oct 28 2021, 12:33 PM
Details
swh_scheduler = <swh.scheduler.backend.SchedulerBackend object at 0x7fda3bbd79e8> def test_cli_schedule_recurrent_unknown_visit_type(swh_scheduler): """When passed an unknown visit type, the recurrent visit scheduler should refuse to start.""" with pytest.raises(ValueError, match="Unknown"): invoke( swh_scheduler, False, > ["schedule-recurrent", "--visit-type", "unknown", "--visit-type", "git"], ) .tox/py3/lib/python3.7/site-packages/swh/scheduler/tests/test_recurrent_visits.py:59: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/scheduler/tests/test_cli.py:43: in invoke raise result.exception .tox/py3/lib/python3.7/site-packages/click/testing.py:329: in invoke cli.main(args=args or (), prog_name=prog_name, **extra) .tox/py3/lib/python3.7/site-packages/click/core.py:782: in main rv = self.invoke(ctx) .tox/py3/lib/python3.7/site-packages/click/core.py:1259: in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) .tox/py3/lib/python3.7/site-packages/click/core.py:1066: in invoke return ctx.invoke(self.callback, **ctx.params) .tox/py3/lib/python3.7/site-packages/click/core.py:610: in invoke return callback(*args, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = (), kwargs = {'visit_types': ('unknown', 'git')} def new_func(*args, **kwargs): > return f(get_current_context(), *args, **kwargs) E TypeError: schedule_recurrent() missing 1 required positional argument: 'period' .tox/py3/lib/python3.7/site-packages/click/decorators.py:21: TypeError