diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-10-31 12:25:50 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-10-31 12:25:50 -0400 |
commit | b2dc994ebebb43ab7328ca5309bb18798978d94e (patch) | |
tree | d0def497b7e9e6659c252c08401f4078ce1d5b49 /tests | |
parent | ed25a1a8f501d57fb2f64a27b490890f12504055 (diff) | |
download | cmd2-git-b2dc994ebebb43ab7328ca5309bb18798978d94e.tar.gz |
Made some cmd2 module constants cmd2.Cmd class constants
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_completion.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_completion.py b/tests/test_completion.py index 3b26b044..475b44dd 100755 --- a/tests/test_completion.py +++ b/tests/test_completion.py @@ -187,13 +187,13 @@ def test_default_sort_key(cmd2_app): begidx = endidx - len(text) # First do alphabetical sorting - cmd2_app.default_sort_key = cmd2.cmd2.ALPHABETICAL_SORT_KEY + cmd2_app.default_sort_key = cmd2.Cmd.ALPHABETICAL_SORT_KEY expected = ['1', '11', '2'] first_match = complete_tester(text, line, begidx, endidx, cmd2_app) assert first_match is not None and cmd2_app.completion_matches == expected # Now switch to natural sorting - cmd2_app.default_sort_key = cmd2.cmd2.NATURAL_SORT_KEY + cmd2_app.default_sort_key = cmd2.Cmd.NATURAL_SORT_KEY expected = ['1', '2', '11'] first_match = complete_tester(text, line, begidx, endidx, cmd2_app) assert first_match is not None and cmd2_app.completion_matches == expected |