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

Function test_unrecognized_remote_command

t/unit/bin/test_control.py:52–59  ·  view source on GitHub ↗
(celery_cmd, remote_cmd, isolated_cli_runner: CliRunner)

Source from the content-addressed store, hash-verified

50 ],
51)
52def test_unrecognized_remote_command(celery_cmd, remote_cmd, isolated_cli_runner: CliRunner):
53 res = isolated_cli_runner.invoke(
54 celery,
55 [*_GLOBAL_OPTIONS, celery_cmd, *_INSPECT_OPTIONS, remote_cmd],
56 catch_exceptions=False,
57 )
58 assert res.exit_code == 2, (res, res.output)
59 assert f'Error: Command {remote_cmd} not recognized. Available {celery_cmd} commands: ' in res.output
60
61
62_expected_inspect_regex = (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected