(isolated_cli_runner: CliRunner)
| 11 | |
| 12 | |
| 13 | def 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 | |
| 25 | def test_cli_quiet(isolated_cli_runner: CliRunner): |
nothing calls this directly
no outgoing calls
no test coverage detected