From 47f963e4912ce8e765cf0f724e5d19f2cecd4bce Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Wed, 1 Aug 2018 12:00:08 -0400 Subject: Added alphabetical_sort() function --- tests/test_completion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test_completion.py b/tests/test_completion.py index 138ab413..d50ad039 100644 --- a/tests/test_completion.py +++ b/tests/test_completion.py @@ -410,7 +410,7 @@ def test_delimiter_completion(cmd2_app): # Remove duplicates from display_matches and sort it. This is typically done in complete(). display_list = utils.remove_duplicates(cmd2_app.display_matches) - display_list.sort(key=str.lower) + display_list = utils.alphabetical_sort(display_list) assert display_list == ['other user', 'user'] -- cgit v1.2.1