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

Function test_find_matches_applies_casing

test/pytests/test_sqlcompleter.py:360–368  ·  view source on GitHub ↗
(
    orig_text: str,
    collection: list[str],
    casing: str,
    expected: list[tuple[str, int]],
)

Source from the content-addressed store, hash-verified

358 ],
359)
360def test_find_matches_applies_casing(
361 orig_text: str,
362 collection: list[str],
363 casing: str,
364 expected: list[tuple[str, int]],
365) -> None:
366 matches = collect_matches(orig_text, collection, casing=casing)
367
368 assert matches == expected
369
370
371def test_init_invalid_keyword_casing_defaults_to_auto() -> None:

Callers

nothing calls this directly

Calls 1

collect_matchesFunction · 0.85

Tested by

no test coverage detected