MCPcopy Index your code
hub / github.com/treeverse/dvc / test_unknown_command_help

Function test_unknown_command_help

tests/func/test_cli.py:154–167  ·  view source on GitHub ↗
(capsys)

Source from the content-addressed store, hash-verified

152
153
154def test_unknown_command_help(capsys):
155 try:
156 _ = parse_args(["unknown"])
157 except DvcParserError:
158 pass
159 captured = capsys.readouterr()
160 output = captured.out
161 try:
162 _ = parse_args(["--help"])
163 except SystemExit:
164 pass
165 captured = capsys.readouterr()
166 help_output = captured.out
167 assert output == help_output
168
169
170def test_unknown_subcommand_help(capsys):

Callers

nothing calls this directly

Calls 1

parse_argsFunction · 0.90

Tested by

no test coverage detected