/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/t/test_chsh.py
24 строки
605 B
Ville Skyttä
chsh, useradd, usermod: complete shells in chroot given by -R/--root
05 янв 2021, 10:02
05 янв 2021, 10:02
e05885e
Код
Авторство
О чём код?
import os import pytest class TestChsh: @pytest.mark.complete("chsh ") def test_1(self, completion): assert completion @pytest.mark.complete("chsh -s ") def test_shells(self, completion): if os.path.exists("/etc/shells"): assert completion else: assert not completion @pytest.mark.complete("chsh -", require_cmd=True) def test_3(self, completion): assert completion @pytest.mark.complete("chsh --root shells -s ") def test_chroot_shells(self, completion): assert completion == "/bash/completion/canary"