/
niceSOFT
/
python3-pyOpenSSL
Обзор
Документация
Войти
/
niceSOFT
/
python3-pyOpenSSL
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
24.1.0
tests/conftest.py
27 строк
565 B
Alex Gaynor
Bump version for 24.1.0 release (#1297)
10 мар 2024, 02:14
Не верифицирован
10 мар 2024, 02:14
d9f2c46
Код
Авторство
О чём код?
# Copyright (c) The pyOpenSSL developers # See LICENSE for details. from tempfile import mktemp import pytest def pytest_report_header(config): import cryptography import OpenSSL.SSL return ( f"OpenSSL: {OpenSSL.SSL.SSLeay_version(OpenSSL.SSL.SSLEAY_VERSION)}\n" f"cryptography: {cryptography.__version__}" ) @pytest.fixture def tmpfile(tmpdir): """ Return UTF-8-encoded bytes of a path to a tmp file. The file will be cleaned up after the test run. """ return mktemp(dir=tmpdir.dirname).encode("utf-8")