(isolated_cli_runner: CliRunner)
| 52 | |
| 53 | |
| 54 | def 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 | |
| 64 | def test_cli_skip_checks(isolated_cli_runner: CliRunner): |
nothing calls this directly
no outgoing calls
no test coverage detected