/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/t/test_postfix.py
22 строки
524 B
Ville Skyttä
test(pytest): pytest.mark.skip instead of xfail where appropriate
25 июн 2026, 21:30
25 июн 2026, 21:30
b00976f
Код
Авторство
О чём код?
import getpass import pytest class TestPostfix: @pytest.mark.complete("postfix ") def test_1(self, completion): assert completion @pytest.mark.skipif( getpass.getuser() != "root", reason="Likely outputs usage only for root", ) @pytest.mark.complete( "postfix -", require_cmd=True, xfail="! type unbuffer &>/dev/null", sleep_after_tab=2, # postfix is slow to output usage ) def test_options(self, completion): assert completion