/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/t/test_configure.py
25 строк
722 B
Ville Skyttä
feat(configure): fall back to filedir for unhandled cases
16 мар 2021, 23:47
16 мар 2021, 23:47
34d040b
Код
Авторство
О чём код?
import pytest @pytest.mark.bashcomp( pre_cmds=( # Make sure our own ./configure is in PATH "PATH=$PWD/../..:$PATH", ) ) class TestConfigure: @pytest.mark.complete("configure --", require_cmd=True) def test_1(self, completion): assert completion @pytest.mark.complete("configure --prefix ") def test_2(self, completion): assert completion @pytest.mark.complete("configure --unknown-option-with-split=") def test_unknown_split_filedir_fallback(self, completion): assert "shared/" in completion @pytest.mark.complete("configure --unknown-option ") def test_unknown_filedir_fallback(self, completion): assert "shared/" in completion