MCPcopy Create free account
hub / github.com/dbcli/mycli / test_apply_casing

Function test_apply_casing

test/pytests/test_sqlcompleter.py:239–245  ·  view source on GitHub ↗
(
    completions: list[tuple[str, int]],
    casing: str | None,
    expected: list[tuple[str, int]],
)

Source from the content-addressed store, hash-verified

237 ],
238)
239def test_apply_casing(
240 completions: list[tuple[str, int]],
241 casing: str | None,
242 expected: list[tuple[str, int]],
243) -> None:
244 completer = SQLCompleter()
245 assert list(completer.apply_casing(completions, casing)) == expected
246
247
248def test_find_matches_uses_last_word_for_prefix_matching() -> None:

Callers

nothing calls this directly

Calls 2

apply_casingMethod · 0.95
SQLCompleterClass · 0.90

Tested by

no test coverage detected