summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-10-31 12:25:50 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-10-31 12:25:50 -0400
commitb2dc994ebebb43ab7328ca5309bb18798978d94e (patch)
treed0def497b7e9e6659c252c08401f4078ce1d5b49 /tests
parented25a1a8f501d57fb2f64a27b490890f12504055 (diff)
downloadcmd2-git-b2dc994ebebb43ab7328ca5309bb18798978d94e.tar.gz
Made some cmd2 module constants cmd2.Cmd class constants
Diffstat (limited to 'tests')
-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