diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/conftest.py | 2 | ||||
| -rw-r--r-- | tests/test_argparse.py | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 387322b1..021af193 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -21,7 +21,7 @@ edit help history load py pyscript quit set shell shortcuts # Help text for the history command HELP_HISTORY = """usage: history [-h] [-r | -e | -o FILE] [-s] [arg] -run, edit, and save previously entered commands +View, run, edit, and save previously entered commands. positional arguments: arg empty all history items diff --git a/tests/test_argparse.py b/tests/test_argparse.py index fea9bebb..e144514a 100644 --- a/tests/test_argparse.py +++ b/tests/test_argparse.py @@ -140,10 +140,14 @@ def test_argparse_quoted_arguments_posix_multiple(argparse_app): def test_argparse_help_docstring(argparse_app): out = run_cmd(argparse_app, 'help say') - assert out[0] == 'Repeat what you tell me to.' + assert out[0].startswith('usage: say') + assert out[1] == '' + assert out[2] == 'Repeat what you tell me to.' def test_argparse_help_description(argparse_app): out = run_cmd(argparse_app, 'help tag') + assert out[0].startswith('usage: tag') + assert out[1] == '' assert out[2] == 'create a html tag' def test_argparse_prog(argparse_app): |
