/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/t/test_dpkg_query.py
22 строки
588 B
Ville Skyttä
test(pytest): pytest.mark.skip instead of xfail where appropriate
25 июн 2026, 21:30
25 июн 2026, 21:30
b00976f
Код
Авторство
О чём код?
import os.path import pytest @pytest.mark.bashcomp(cmd="dpkg-query") class TestDpkgQuery: @pytest.mark.complete("dpkg-query --", require_cmd=True) def test_options(self, completion): assert completion @pytest.mark.skipif( not os.path.exists("/etc/debian_version"), reason="Likely fails on systems not based on Debian", ) @pytest.mark.complete( "dpkg-query -W dpk", require_cmd=True, xfail="! apt-cache show &>/dev/null", # empty cache? ) def test_show(self, completion): assert "dpkg" in completion