/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/t/test_look.py
16 строк
367 B
Ville Skyttä
*: format Python code with black
20 апр 2019, 11:23
20 апр 2019, 11:23
2c1a531
Код
Авторство
О чём код?
import subprocess import pytest class TestLook: @pytest.mark.complete("look foo") def test_1(self, completion): try: subprocess.check_call( "look foo 2>/dev/null | command grep -q ^foo", shell=True ) except BaseException: assert not completion else: assert completion