/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/t/test_lftp.py
15 строк
559 B
Ville Skyttä
test: rename hosts fixtures more descriptively
28 июл 2026, 22:57
28 июл 2026, 22:57
f19c65c
Код
Авторство
О чём код?
import pytest @pytest.mark.bashcomp(pre_cmds=("HOME=$PWD/lftp",)) class TestLftp: @pytest.mark.complete("lftp ", require_cmd=True) def test_1(self, bash, hosts_from_hostfile, completion, output_sort_uniq): assert all(x in completion for x in hosts_from_hostfile) # defined in lftp/.lftp/bookmarks assert all(x in completion for x in "lftptest spacetest".split()) assert "badbookmark" not in completion @pytest.mark.complete("lftp -", require_cmd=True) def test_2(self, completion): assert completion