MCPcopy Index your code
hub / github.com/dbcli/pgcli / test_aliased_joins

Function test_aliased_joins

tests/test_smart_completion_public_schema_only.py:465–475  ·  view source on GitHub ↗
(completer, text)

Source from the content-addressed store, hash-verified

463@parametrize("completer", completers(casing=False, aliasing=True))
464@parametrize("text", join_texts)
465def test_aliased_joins(completer, text):
466 result = get_result(completer, text)
467 assert completions_to_set(result) == completions_to_set(
468 testdata.schemas()
469 + aliased_rels
470 + [
471 join('"Users" U ON U.userid = Users.id'),
472 join("users u ON u.id = Users.parentid"),
473 join("users u ON u.parentid = Users.id"),
474 ]
475 )
476
477
478@parametrize("completer", completers(casing=False, aliasing=False))

Callers

nothing calls this directly

Calls 3

get_resultFunction · 0.90
completions_to_setFunction · 0.90
schemasMethod · 0.80

Tested by

no test coverage detected