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