We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b40923f + 9948ff1 commit cf3f8d8Copy full SHA for cf3f8d8
tests/test_completion.py
@@ -6,6 +6,8 @@
6
import tempfile
7
from contextlib import contextmanager
8
9
+import keyboard
10
+
11
from prompt_toolkit import PromptSession
12
from prompt_toolkit.completion import (
13
CompleteEvent,
@@ -336,6 +338,12 @@ def test_word_completer_move_cursor():
336
338
keyboard.press_and_release("enter")
337
339
assert text == "title(TESTTITLE)"""""
340
341
+ keyboard.press_and_release("tab")
342
+ result, cli = _feed_cli_with_input("TESTTITLE\r")
343
+ keyboard.press_and_release("enter")
344
+ assert result.text == "title(TESTTITLE)"
345
+ assert cli.current_buffer.text == "title(TESTTITLE)"
346
347
"""result, cli = _feed_cli_with_input("ti\tTESTTITLE\r")
348
assert result.text == "title(TESTTITLE)"
349
assert cli.current_buffer.text == "title(TESTTITLE)"""""
0 commit comments