def test_get_completion_selected_style_returns_override_when_provided( completer: ActionCompleter, completable: types.ActionCompletable_T, text: str, default: str, ): assert (completer._get_completion_selected_style(completable, text, default) == default)
def test_get_completion_selected_style_returns_blank_string_when_necessary( completer: ActionCompleter, completable: types.ActionCompletable_T, text: str): assert completer._get_completion_selected_style(completable, text) == ""
def test_get_completion_selected_style(completer: ActionCompleter, completable: types.ActionCompletable_T, text: str): assert completer._get_completion_selected_style(completable, text) == "test"