From 0e62323ee08cc9557ea5a41a5bd5d93e712ef501 Mon Sep 17 00:00:00 2001 From: Colin-b Date: Mon, 27 Apr 2026 12:09:14 +0200 Subject: [PATCH 1/2] Add initial project date in license --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 350b31b..bafc261 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2026 Colin Bounouar +Copyright (c) 2020-2026 Colin Bounouar Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From d42bf6dd4d388aec782730222daa4180f7f4a59f Mon Sep 17 00:00:00 2001 From: Colin-b Date: Mon, 27 Apr 2026 12:34:14 +0200 Subject: [PATCH 2/2] Use the same pytest setup in local and ci --- .github/workflows/test.yml | 2 +- pyproject.toml | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 560ce8d..47f897a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,7 +26,7 @@ jobs: pre-commit run --all-files - name: Test run: | - pytest --cov=pytest_httpx --cov-fail-under=100 --cov-report=term-missing --runpytest=subprocess --cov-branch --cov-report=xml --junitxml=junit.xml -o junit_family=legacy + pytest --cov-report=xml --junitxml=junit.xml -o junit_family=legacy - name: Upload test results to Codecov uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0 with: diff --git a/pyproject.toml b/pyproject.toml index a74ae03..3f1ad70 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -63,8 +63,13 @@ pytest_httpx = "pytest_httpx" version = {attr = "pytest_httpx.version.__version__"} [tool.pytest] -# Silence deprecation warnings about option "asyncio_default_fixture_loop_scope" -asyncio_default_fixture_loop_scope = "function" +asyncio_mode = "auto" +addopts = ["--cov=pytest_httpx", "--runpytest=subprocess"] + +[tool.coverage.report] +fail_under = 100 +show_missing = true [tool.coverage.run] +branch = true patch = ["subprocess"]