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

Function test_cli

t/unit/bin/test_beat.py:13–22  ·  view source on GitHub ↗
(isolated_cli_runner: CliRunner)

Source from the content-addressed store, hash-verified

11
12
13def test_cli(isolated_cli_runner: CliRunner):
14 Logging._setup = True # To avoid hitting the logging sanity checks
15 res = isolated_cli_runner.invoke(
16 celery,
17 ["-A", "t.unit.bin.proj.app", "beat", "-S", "t.unit.bin.proj.scheduler.mScheduler"],
18 catch_exceptions=True
19 )
20 assert res.exit_code == 1, (res, res.stdout)
21 assert res.stdout.startswith("celery beat")
22 assert "Configuration ->" in res.stdout
23
24
25def test_cli_quiet(isolated_cli_runner: CliRunner):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected