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

Function test_3_statements_2nd_current

tests/test_sqlcompletion.py:637–645  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

635
636
637def test_3_statements_2nd_current():
638 suggestions = suggest_type(
639 "select * from a; select * from ; select * from c",
640 "select * from a; select * from ",
641 )
642 assert set(suggestions) == {FromClauseItem(schema=None), Schema()}
643
644 suggestions = suggest_type("select * from a; select from b; select * from c", "select * from a; select ")
645 assert set(suggestions) == cols_etc("b", last_keyword="SELECT")
646
647
648@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

suggest_typeFunction · 0.90
cols_etcFunction · 0.85

Tested by

no test coverage detected