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

Function test_select_suggests_cols_and_funcs

tests/test_sqlcompletion.py:109–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107
108
109def test_select_suggests_cols_and_funcs():
110 suggestions = suggest_type("SELECT ", "SELECT ")
111 assert set(suggestions) == {
112 Column(table_refs=(), qualifiable=True),
113 Function(schema=None),
114 Keyword("SELECT"),
115 }
116
117
118@pytest.mark.parametrize("expression", ["INSERT INTO ", "COPY ", "UPDATE ", "DESCRIBE "])

Callers

nothing calls this directly

Calls 1

suggest_typeFunction · 0.90

Tested by

no test coverage detected