/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/t/test_service.py
20 строк
593 B
Ville Skyttä
test(pytest): pytest.mark.skip instead of xfail where appropriate
25 июн 2026, 21:30
25 июн 2026, 21:30
b00976f
Код
Авторство
О чём код?
import sys import pytest from conftest import assert_complete, bash_env_saved class TestService: @pytest.mark.skipif( sys.platform == "darwin", reason="Service completion not available on macOS", ) def test_1(self, bash): with bash_env_saved(bash) as bash_env: bash_env.write_variable( "_comp__test_inetd_dir", "%s/_comp_compgen_xinetd_services/xinetd.d" % bash.cwd, ) completion = assert_complete(bash, "service ") assert all(x in completion for x in ("arp", "ifconfig"))