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

Function test_where_in_suggests_columns

tests/test_sqlcompletion.py:83–85  ·  view source on GitHub ↗
(expression)

Source from the content-addressed store, hash-verified

81 ["SELECT * FROM tabl WHERE foo IN (", "SELECT * FROM tabl WHERE foo IN (bar, "],
82)
83def test_where_in_suggests_columns(expression):
84 suggestions = suggest_type(expression, expression)
85 assert set(suggestions) == cols_etc("tabl", last_keyword="WHERE")
86
87
88@pytest.mark.parametrize("expression", ["SELECT 1 AS ", "SELECT 1 FROM tabl AS "])

Callers

nothing calls this directly

Calls 2

suggest_typeFunction · 0.90
cols_etcFunction · 0.85

Tested by

no test coverage detected