def test_get_completion_style_returns_override_when_provided( completer: ActionCompleter, completable: types.ActionCompletable_T, text: str, default: str, ): assert completer._get_completion_style(completable, text, default) == default
def test_get_completion_style(completer: ActionCompleter, completable: types.ActionCompletable_T, text: str): assert completer._get_completion_style(completable, text) == "test"
def test_get_completion_style_returns_blank_string_when_necessary( completer: ActionCompleter, completable: types.ActionCompletable_T, text: str): assert completer._get_completion_style(completable, text) == ""