/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/t/test_getconf.py
25 строк
649 B
Ville Skyttä
test(getconf): skip variable completion if -a fails
07 май 2021, 21:08
07 май 2021, 21:08
6a0052b
Код
Авторство
О чём код?
import pytest class TestGetconf: @pytest.mark.complete("getconf P", skipif="! getconf -a &>/dev/null") def test_1(self, completion): assert completion @pytest.mark.complete("getconf -") def test_2(self, completion): assert completion @pytest.mark.complete("getconf -a ") def test_3(self, completion): assert completion @pytest.mark.complete( "getconf -v ", xfail="! getconf -a 2>&1 | command grep -q ^POSIX_V" ) def test_4(self, completion): assert completion @pytest.mark.complete("getconf PATH_MAX ") def test_5(self, completion): assert completion