コード例 #1
0
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
コード例 #2
0
def test_get_completion_style(completer: ActionCompleter,
                              completable: types.ActionCompletable_T,
                              text: str):
    assert completer._get_completion_style(completable, text) == "test"
コード例 #3
0
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) == ""