diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2019-11-02 13:39:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-02 13:39:36 -0400 |
commit | a18eef6f6aa89280b5f9b92d4e681f22a438ff8b (patch) | |
tree | 6edce82378ac1fca1568c19ae4c723bb3ad4dbd4 /tests/test_completion.py | |
parent | 245dc33730d2a27bc9744be7cf36f176f5a0c10a (diff) | |
parent | 4ea04bc6e7d64d2e1f84ed2a512917576c715bcd (diff) | |
download | cmd2-git-a18eef6f6aa89280b5f9b92d4e681f22a438ff8b.tar.gz |
Merge pull request #798 from python-cmd2/refactoring
Refactoring
Diffstat (limited to 'tests/test_completion.py')
-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 |