MCPcopy Index your code
hub / github.com/dbcli/mycli / test_emit_select_like_default

Function test_emit_select_like_default

test/pytests/test_completion_engine.py:548–557  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

546
547
548def test_emit_select_like_default():
549 text = 'SELECT '
550 full_text = 'SELECT FROM tabl'
551 context = _build_suggest_context('select', text, None, full_text, empty_identifier())
552 assert sorted_dicts(_emit_select_like(context)) == sorted_dicts([
553 {'type': 'column', 'tables': [(None, 'tabl', None)]},
554 {'type': 'function', 'schema': []},
555 {'type': 'introducer'},
556 {'type': 'alias', 'aliases': ['tabl']},
557 ])
558
559
560def test_emit_relation_like_with_schema_parent():

Callers

nothing calls this directly

Calls 4

_build_suggest_contextFunction · 0.90
_emit_select_likeFunction · 0.90
empty_identifierFunction · 0.85
sorted_dictsFunction · 0.85

Tested by

no test coverage detected