/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/t/test_pyston.py
19 строк
466 B
Ville Skyttä
test(pyston): require command present for options test
15 май 2023, 17:47
15 май 2023, 17:47
e63a940
Код
Авторство
О чём код?
import pytest class TestPyston: @pytest.mark.complete("pyston ") def test_basic(self, completion): assert completion @pytest.mark.complete("pyston -", require_cmd=True) def test_options(self, completion): assert completion @pytest.mark.complete( "pyston -b", require_cmd=True, skipif="! pyston -h | command grep -qwF -- -bb", ) def test_bb(self, completion): assert "-bb" in completion