MCPcopy Create free account
hub / github.com/python-arq/arq / test_run

Function test_run

tests/test_cli.py:30–35  ·  view source on GitHub ↗
(cancel_remaining_task, mocker, loop)

Source from the content-addressed store, hash-verified

28
29
30def test_run(cancel_remaining_task, mocker, loop):
31 mocker.patch('asyncio.get_event_loop', lambda: loop)
32 runner = CliRunner()
33 result = runner.invoke(cli, ['tests.test_cli.WorkerSettings'])
34 assert result.exit_code == 0
35 assert 'Starting worker for 1 functions: foobar' in result.output
36
37
38def test_check(loop):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…