/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/t/test_ssh_keyscan.py
19 строк
500 B
Ville Skyttä
feat(ssh-keyscan): complete comma separated -t args
04 июл 2021, 12:12
04 июл 2021, 12:12
1893481
Код
Авторство
О чём код?
import pytest @pytest.mark.bashcomp( cmd="ssh-keyscan", ) class TestSshKeyscan: @pytest.mark.complete("ssh-keyscan ") def test_basic(self, completion): assert completion @pytest.mark.complete("ssh-keyscan -", require_cmd=True) def test_options(self, completion): assert completion @pytest.mark.complete("ssh-keyscan -t rsa,", require_cmd=True) def test_type_delimited(self, completion): assert completion assert "rsa" not in completion