/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/t/test_dmypy.py
14 строк
405 B
Ville Skyttä
style(test): remove redundant require_cmd with require_longopt
31 июл 2021, 10:54
31 июл 2021, 10:54
074ff4c
Код
Авторство
О чём код?
import pytest class TestDmypy: @pytest.mark.complete( "dmypy ", require_cmd=True, xfail="! dmypy --help &>/dev/null" ) def test_commands(self, completion): assert "help" in completion assert not any("," in x for x in completion) @pytest.mark.complete("dmypy -", require_longopt=True) def test_options(self, completion): assert "--help" in completion