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

Function test_cli

t/unit/bin/test_worker.py:54–61  ·  view source on GitHub ↗
(isolated_cli_runner: CliRunner)

Source from the content-addressed store, hash-verified

52
53
54def test_cli(isolated_cli_runner: CliRunner):
55 Logging._setup = True # To avoid hitting the logging sanity checks
56 res = isolated_cli_runner.invoke(
57 celery,
58 ["-A", "t.unit.bin.proj.app", "worker", "--pool", "solo"],
59 catch_exceptions=False
60 )
61 assert res.exit_code == 1, (res, res.stdout)
62
63
64def test_cli_skip_checks(isolated_cli_runner: CliRunner):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected