(util: UtilFixture, capsys, file_regression, arg)
| 57 | ) |
| 58 | @pytest.mark.usefixtures("python_version", "consistent_terminal_output") |
| 59 | def test_invalid_command(util: UtilFixture, capsys, file_regression, arg): |
| 60 | with pytest.raises(NoCommandFoundError): |
| 61 | util.run_cli(arg) |
| 62 | out, err = capsys.readouterr() |
| 63 | assert out == "" |
| 64 | if arg == "invalidCommand": |
| 65 | err = normalize_argparse_choice_quotes(err) |
| 66 | file_regression.check(err, extension=".txt") |
| 67 | |
| 68 | |
| 69 | def test_cz_config_file_without_correct_file_path(util: UtilFixture): |
nothing calls this directly
no test coverage detected
searching dependent graphs…