(capsys)
| 168 | |
| 169 | |
| 170 | def 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 |
nothing calls this directly
no test coverage detected