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

Function test_normalize_argparse_choice_quotes

tests/test_cli.py:33–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32
33def test_normalize_argparse_choice_quotes():
34 text = (
35 "cz: error: argument {init,commit}: invalid choice: 'invalidCommand' "
36 "(choose from 'init', 'commit')"
37 )
38
39 assert normalize_argparse_choice_quotes(text) == (
40 "cz: error: argument {init,commit}: invalid choice: 'invalidCommand' "
41 "(choose from init, commit)"
42 )
43
44
45@pytest.mark.usefixtures("python_version", "consistent_terminal_output")

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…