diff options
-rw-r--r-- | tests/test_argparse_completer.py | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/tests/test_argparse_completer.py b/tests/test_argparse_completer.py index e8ff1aaf..72efdc20 100644 --- a/tests/test_argparse_completer.py +++ b/tests/test_argparse_completer.py @@ -623,12 +623,7 @@ def test_autocomp_hint_flag(ac_app, capsys): first_match = complete_tester(text, line, begidx, endidx, ac_app) out, err = capsys.readouterr() - assert first_match is None - assert out == ''' -Hint: - -f, --flag FLAG a flag arg - -''' + assert first_match is None and "Hint" in out def test_autocomp_hint_suppressed_help(ac_app, capsys): @@ -666,13 +661,7 @@ def test_autocomp_hint_pos(ac_app, capsys): first_match = complete_tester(text, line, begidx, endidx, ac_app) out, err = capsys.readouterr() - assert first_match is None - assert out == ''' -Hint: - HINT_POS here is a hint - with new lines - -''' + assert first_match is None and "Hint" in out def test_autocomp_hint_no_help(ac_app, capsys): @@ -684,12 +673,7 @@ def test_autocomp_hint_no_help(ac_app, capsys): first_match = complete_tester(text, line, begidx, endidx, ac_app) out, err = capsys.readouterr() - assert first_match is None - assert not out == ''' -Hint: - NO_HELP_POS - -''' + assert first_match is None and "Hint" in out def test_single_prefix_char(): |