/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/t/test_apt_get.py
16 строк
505 B
Ville Skyttä
test: simplify completion parsing
04 июн 2020, 23:58
04 июн 2020, 23:58
726e4c0
Код
Авторство
О чём код?
import pytest @pytest.mark.bashcomp(cmd="apt-get") class TestAptGet: @pytest.mark.complete("apt-get ") def test_1(self, completion): assert all(x in completion for x in "install update".split()) @pytest.mark.complete("apt-get install ./", cwd="dpkg") def test_2(self, completion): assert completion == "bash-completion-test-subject.deb" @pytest.mark.complete("apt-get build-dep ") def test_build_dep_dirs(self, completion): assert "dpkg/" in completion