/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/t/test_htpasswd.py
23 строки
652 B
Ville Skyttä
test: always run tests which don't require tested command
04 июл 2019, 12:36
04 июл 2019, 12:36
674dd80
Код
Авторство
О чём код?
import pytest class TestHtpasswd: @pytest.mark.complete("htpasswd ") def test_1(self, completion): assert completion @pytest.mark.complete("htpasswd -n htpasswd/ht") def test_2(self, completion): assert not completion @pytest.mark.complete("htpasswd ", cwd="htpasswd") def test_3(self, completion): assert completion == "htpasswd" @pytest.mark.complete("htpasswd -D htpasswd ", cwd="htpasswd") def test_4(self, completion): assert completion == "foo quux".split() @pytest.mark.complete("htpasswd -", require_cmd=True) def test_5(self, completion): assert completion