test that `python -m PKG --help-all` works
(pkg: str, subcommand: Sequence[str] | None = None)
| 30 | |
| 31 | |
| 32 | def check_help_all_output(pkg: str, subcommand: Sequence[str] | None = None) -> tuple[str, str]: |
| 33 | """test that `python -m PKG --help-all` works""" |
| 34 | cmd = [sys.executable, "-m", pkg] |
| 35 | if subcommand: |
| 36 | cmd.extend(subcommand) |
| 37 | cmd.append("--help-all") |
| 38 | out, err, rc = get_output_error_code(cmd) |
| 39 | assert rc == 0, err |
| 40 | assert "Traceback" not in err |
| 41 | assert "Options" in out |
| 42 | assert "Class options" in out |
| 43 | return out, err |
searching dependent graphs…