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

Function test_suggests_tables_views_and_schemas

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

Source from the content-addressed store, hash-verified

117
118@pytest.mark.parametrize("expression", ["INSERT INTO ", "COPY ", "UPDATE ", "DESCRIBE "])
119def test_suggests_tables_views_and_schemas(expression):
120 suggestions = suggest_type(expression, expression)
121 assert set(suggestions) == {Table(schema=None), View(schema=None), Schema()}
122
123
124@pytest.mark.parametrize("expression", ["SELECT * FROM "])

Callers

nothing calls this directly

Calls 1

suggest_typeFunction · 0.90

Tested by

no test coverage detected