MCPcopy
hub / github.com/dbcli/pgcli / test_empty_string_completion

Function test_empty_string_completion

tests/test_naive_completion.py:21–25  ·  view source on GitHub ↗
(completer, complete_event)

Source from the content-addressed store, hash-verified

19
20
21def test_empty_string_completion(completer, complete_event):
22 text = ""
23 position = 0
24 result = completions_to_set(completer.get_completions(Document(text=text, cursor_position=position), complete_event))
25 assert result == completions_to_set(map(Completion, completer.all_completions))
26
27
28def test_select_keyword_completion(completer, complete_event):

Callers

nothing calls this directly

Calls 2

completions_to_setFunction · 0.90
get_completionsMethod · 0.45

Tested by

no test coverage detected