def test_get_completion_display_meta_returns_override_when_provided( completer: ActionCompleter, completable: types.ActionCompletable_T, text: str, override: str, ): assert completer._get_completion_display_meta(completable, text, override) == "test"
def test_get_completion_display_meta_failed_override_falls_back_to_empty_string( completer: ActionCompleter, completable: types.ActionCompletable_T, text: str, override: types.LazyText_T, ): assert completer._get_completion_display_meta(completable, text, override) == ""
def test_get_completion_display_meta_returns_empty_string_when_necessary( completer: ActionCompleter, completable: types.ActionCompletable_T, text: str, ): assert completer._get_completion_display_meta(completable, text) == ""
def test_get_completion_display_meta(completer: ActionCompleter, completable: types.ActionCompletable_T, text: str): assert completer._get_completion_display_meta(completable, text) == "test"