/
githubmirror
/
bash-completion
Обзор
Документация
Войти
/
githubmirror
/
bash-completion
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/t/test_openssl.py
22 строки
724 B
Yedaya Katsman
feat(openssl): Complete encryption algos for `enc`
12 фев 2025, 23:05
12 фев 2025, 23:05
01b3aa2
Код
Авторство
О чём код?
import pytest class TestOpenssl: @pytest.mark.complete("openssl ", require_cmd=True) def test_1(self, completion): assert completion assert all(x in completion for x in "x509 dgst enc pkey".split()) @pytest.mark.complete("openssl pkey -cipher ", require_cmd=True) def test_2(self, completion): assert completion @pytest.mark.complete("openssl dgst -s", require_cmd=True) def test_3(self, completion): assert completion assert any(x.startswith("-sha") for x in completion) @pytest.mark.complete("openssl enc -a", require_cmd=True) def test_4(self, completion): assert completion assert any(x.startswith("-aes") for x in completion)