/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/t/test_apt_cache.py
17 строк
528 B
Ville Skyttä
apt-cache: fix command mode handling
26 апр 2020, 14:34
26 апр 2020, 14:34
c41b772
Код
Авторство
О чём код?
import pytest @pytest.mark.bashcomp(cmd="apt-cache") class TestAptCache: @pytest.mark.complete("apt-cache ") def test_1(self, completion): assert "search" in completion @pytest.mark.complete("apt-cache showsrc [", require_cmd=True) def test_2(self, completion): # Doesn't actually fail on grep errors, but takes a long time. assert not completion @pytest.mark.complete("apt-cache ", trail=" add foo") def test_special_at_point(self, completion): assert not completion