(capsys)
| 152 | |
| 153 | |
| 154 | def 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 | |
| 170 | def test_unknown_subcommand_help(capsys): |
nothing calls this directly
no test coverage detected