(celery_cmd, remote_cmd, isolated_cli_runner: CliRunner)
| 50 | ], |
| 51 | ) |
| 52 | def 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 = ( |
nothing calls this directly
no outgoing calls
no test coverage detected