More completer unit test cases.

This commit is contained in:
Ryan Roden-Corrent 2016-07-04 19:04:05 -04:00
parent 4c9417ac6e
commit 6c2c9438a7

View File

@ -195,6 +195,9 @@ def test_completion_item_next(completer_obj, cmd, completion_widget_stub,
(':foo |', 'bar', True, 2, ':foo bar|'),
(':foo |', 'bar', True, 1, ':foo bar |'),
(':foo | bar', 'baz', False, 1, ':foo baz| bar'),
(':foo |', 'bar baz', True, 1, ":foo 'bar baz' |"),
(':foo |', '', True, 1, ":foo '' |"),
(':foo |', None, True, 1, ":foo |"),
])
def test_selection_changed(before, newtxt, count, quick_complete, after,
completer_obj, cmd, completion_widget_stub,