MCPcopy Index your code
hub / github.com/commitizen-tools/commitizen / test_invalid_command

Function test_invalid_command

tests/test_cli.py:59–66  ·  view source on GitHub ↗
(util: UtilFixture, capsys, file_regression, arg)

Source from the content-addressed store, hash-verified

57)
58@pytest.mark.usefixtures("python_version", "consistent_terminal_output")
59def 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
69def test_cz_config_file_without_correct_file_path(util: UtilFixture):

Callers

nothing calls this directly

Calls 2

run_cliMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…