From f02cd07e2721e7a87da86150ae1c82a72613aa61 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Mon, 6 Jan 2025 19:04:30 +0400 Subject: [PATCH] Enable colours in CI (#208) (cherry picked from commit 47172883145b18ddd5b7f4138a58845fdc605436) --- .github/workflows/ci.yml | 3 +++ setup.cfg | 1 + tests/conftest.py | 1 - 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 10de9256..e4e679e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,9 @@ name: CI on: [push, pull_request] +env: + FORCE_COLOR: 1 + jobs: package: runs-on: ubuntu-latest diff --git a/setup.cfg b/setup.cfg index 1fb4dd18..49849323 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,6 +3,7 @@ profile = black [tool:pytest] addopts = -vvv --cov-report=term-missing --cov=elastic_transport +asyncio_default_fixture_loop_scope = "function" [coverage:report] omit = diff --git a/tests/conftest.py b/tests/conftest.py index 129e1ace..cec6eb4f 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -67,7 +67,6 @@ async def perform_request(self, *args, **kwargs): @pytest.fixture(scope="session", params=[True, False]) -@pytest.mark.usefixtures("httpbin_node_config") def httpbin_cert_fingerprint(request) -> str: """Gets the SHA256 fingerprint of the certificate for 'httpbin.org'""" sock = socket.create_connection(("httpbin.org", 443))