/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/t/test_doas.py
17 строк
479 B
archetype
feat(doas): add new completion
28 июн 2026, 02:56
28 июн 2026, 02:56
f047b70
Код
Авторство
О чём код?
import pytest class TestDoas: @pytest.mark.complete("doas -", require_cmd=True) def test_1(self, completion): assert completion @pytest.mark.complete("doas cd foo", cwd="shared/default") def test_2(self, completion): assert completion == ".d/" assert not completion.endswith(" ") @pytest.mark.complete("doas sh share") def test_3(self, completion): assert completion == "d/" assert not completion.endswith(" ")