/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/t/test_printenv.py
19 строк
499 B
Ville Skyttä
test(printenv): avoid xfail condition false positive
23 май 2021, 00:03
23 май 2021, 00:03
e552575
Код
Авторство
О чём код?
import pytest class TestPrintenv: @pytest.mark.complete("printenv ") def test_empty(self, completion): assert completion @pytest.mark.complete("printenv PAT") def test_path(self, completion): assert completion == "H" or "PATH" in completion @pytest.mark.complete( "printenv -", require_cmd=True, xfail="! printenv --help 2>&1 | command grep -q '^[[:space:]]*-'", ) def test_options(self, completion): assert completion