Make sure we receive TypeError when calling argparse-based function with no args
(argparse_app)
| 141 | |
| 142 | |
| 143 | def test_argparse_with_no_args(argparse_app) -> None: |
| 144 | """Make sure we receive TypeError when calling argparse-based function with no args""" |
| 145 | with pytest.raises(TypeError) as excinfo: |
| 146 | argparse_app.do_say() |
| 147 | assert "Expected arguments" in str(excinfo.value) |
| 148 | |
| 149 | |
| 150 | def test_argparser_kwargs(argparse_app, capsys) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…