Sha256: 729301c1645109350a999d3b56af177ec22bab02d4575aacaaa7ea67866f7965
Contents?: true
Size: 758 Bytes
Versions: 1
Compression:
Stored size: 758 Bytes
Contents
import logging import pytest from .ngtcp2test import Env @pytest.mark.usefixtures("env") def pytest_report_header(config): env = Env() return [ f"ngtcp2-examples: [{env.version}, crypto_libs={env.crypto_libs}]", f"example clients: {env.clients}", f"example servers: {env.servers}", ] @pytest.fixture(scope="package") def env(pytestconfig) -> Env: console = logging.StreamHandler() console.setFormatter(logging.Formatter('%(levelname)s: %(message)s')) logging.getLogger('').addHandler(console) env = Env(pytestconfig=pytestconfig) level = logging.DEBUG if env.verbose > 0 else logging.INFO console.setLevel(level) logging.getLogger('').setLevel(level=level) env.setup() return env
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
protocol-quic-0.0.0 | ext/ngtcp2/examples/tests/conftest.py |