summaryrefslogtreecommitdiff
path: root/tests/test_completion.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_completion.py')
-rwxr-xr-xtests/test_completion.py4
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