diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-12 16:46:07 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-12 16:46:07 -0400 |
commit | 5d1fcdba6f1674b46629e92bb3075c12d706af5f (patch) | |
tree | e586e6a4a0652c17310dea7e9713f07c7e058d6b /tests | |
parent | 96e16c90965952182d9e60c8ddb249cbe2236e08 (diff) | |
download | cmd2-git-5d1fcdba6f1674b46629e92bb3075c12d706af5f.tar.gz |
Simplified unit tests
Diffstat (limited to 'tests')
-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(): |