Skip to content

Commit cf3f8d8

Browse files
committed
2 parents b40923f + 9948ff1 commit cf3f8d8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_completion.py

+8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import tempfile
77
from contextlib import contextmanager
88

9+
import keyboard
10+
911
from prompt_toolkit import PromptSession
1012
from prompt_toolkit.completion import (
1113
CompleteEvent,
@@ -336,6 +338,12 @@ def test_word_completer_move_cursor():
336338
keyboard.press_and_release("enter")
337339
assert text == "title(TESTTITLE)"""""
338340

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+
339347
"""result, cli = _feed_cli_with_input("ti\tTESTTITLE\r")
340348
assert result.text == "title(TESTTITLE)"
341349
assert cli.current_buffer.text == "title(TESTTITLE)"""""

0 commit comments

Comments
 (0)