/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/t/test_help.py
21 строка
596 B
Koichi Murase
test(runLint): adjust harmless codes
02 апр 2026, 23:08
02 апр 2026, 23:08
1309562
Код
Авторство
О чём код?
import pytest class TestHelp: @pytest.mark.complete("help ") def test_basic(self, completion): assert "help" in completion @pytest.mark.complete("help -") def test_options(self, completion): assert completion @pytest.mark.complete( r"help \(", skipif="! compgen -A helptopic | command grep -qxF '(( ... ))'", # bash 4.2 ) def test_parens(self, completion): # Assumption: an item like "(( ... ))" exists in the output assert any( x.startswith(r"\(") and x.endswith(r"\)\)") for x in completion )