Page MenuHomeSoftware Heritage

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

TEST RESULT

Run At
Oct 28 2021, 12:33 PM
Details
swh_scheduler = <swh.scheduler.backend.SchedulerBackend object at 0x7fda3bbcc6d8> mocker = <pytest_mock.plugin.MockerFixture object at 0x7fda3bbcc4a8> def test_cli_schedule_recurrent_noop(swh_scheduler, mocker): """When passing no visit types, the recurrent visit scheduler should start.""" spawn_visit_scheduler_thread = mocker.patch( f"{MODULE_NAME}.spawn_visit_scheduler_thread" ) spawn_visit_scheduler_thread.side_effect = SystemExit # The actual scheduling threads won't spawn, they'll immediately terminate. This # only exercises the logic to pull task types out of the database > result = invoke(swh_scheduler, False, ["schedule-recurrent"]) .tox/py3/lib/python3.7/site-packages/swh/scheduler/tests/test_recurrent_visits.py:73: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .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': ()} 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