MCPcopy Create free account
hub / github.com/celery/celery / test_custom_remote_command

Function test_custom_remote_command

t/unit/bin/test_control.py:31–38  ·  view source on GitHub ↗
(celery_cmd, custom_cmd, isolated_cli_runner: CliRunner)

Source from the content-addressed store, hash-verified

29 ],
30)
31def test_custom_remote_command(celery_cmd, custom_cmd, isolated_cli_runner: CliRunner):
32 res = isolated_cli_runner.invoke(
33 celery,
34 [*_GLOBAL_OPTIONS, celery_cmd, *_INSPECT_OPTIONS, *custom_cmd],
35 catch_exceptions=False,
36 )
37 assert res.exit_code == EX_UNAVAILABLE, (res, res.output)
38 assert res.output.strip() == 'Error: No nodes replied within time constraint'
39
40
41@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected