MCPcopy
hub / github.com/treeverse/dvc / test_unknown_subcommand_help

Function test_unknown_subcommand_help

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

Source from the content-addressed store, hash-verified

168
169
170def test_unknown_subcommand_help(capsys):
171 sample_subcommand = "push"
172 try:
173 _ = parse_args([sample_subcommand, "--unknown"])
174 except DvcParserError:
175 pass
176 captured = capsys.readouterr()
177 output = captured.out
178 try:
179 _ = parse_args([sample_subcommand, "--help"])
180 except SystemExit:
181 pass
182 captured = capsys.readouterr()
183 help_output = captured.out
184 assert output == help_output

Callers

nothing calls this directly

Calls 1

parse_argsFunction · 0.90

Tested by

no test coverage detected