/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/t/test_lspci.py
13 строк
318 B
Ville Skyttä
test/lspci: skip -A arg test if lspci fails -A help, e.g. busybox lspci
04 июн 2020, 22:24
04 июн 2020, 22:24
e2cb804
Код
Авторство
О чём код?
import pytest class TestLspci: @pytest.mark.complete("lspci -", require_cmd=True) def test_1(self, completion): assert completion @pytest.mark.complete( "lspci -A ", require_cmd=True, skipif="! lspci -A help &>/dev/null" ) def test_2(self, completion): assert completion