/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/t/test_update_alternatives.py
12 строк
404 B
Koichi Murase
fix(update-alternatives): fix the "--help" parsing
12 авг 2024, 21:45
12 авг 2024, 21:45
07605cb
Код
Авторство
О чём код?
import pytest @pytest.mark.bashcomp(cmd="update-alternatives") class TestUpdateAlternatives: @pytest.mark.complete("update-alternatives --", require_cmd=True) def test_1(self, completion): assert completion @pytest.mark.complete("update-alternatives --", require_cmd=True) def test_2(self, bash, completion): assert all(x in completion for x in ["--list", "--remove"])