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

Function test_lparen_suggests_cols_and_funcs

tests/test_sqlcompletion.py:100–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98
99
100def test_lparen_suggests_cols_and_funcs():
101 suggestion = suggest_type("SELECT MAX( FROM tbl", "SELECT MAX(")
102 assert set(suggestion) == {
103 Column(table_refs=((None, "tbl", None, False),), qualifiable=True),
104 Function(schema=None),
105 Keyword("("),
106 }
107
108
109def test_select_suggests_cols_and_funcs():

Callers

nothing calls this directly

Calls 1

suggest_typeFunction · 0.90

Tested by

no test coverage detected