From 63295b466cb666027767d6cf552a04c902f4900c Mon Sep 17 00:00:00 2001 From: Giorgio Salluzzo Date: Mon, 28 Apr 2025 18:19:38 +0200 Subject: [PATCH] Better conf for `pytest-asyncio`. --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index be88986..6872741 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -89,6 +89,8 @@ testpaths = [ "tests", "mocket", ] addopts = "--doctest-modules --cov=mocket --cov-report=xml --cov-report=term-missing --cov-append -v -x" +asyncio_default_fixture_loop_scope = "function" +asyncio_mode = "auto" [tool.ruff] src = ["mocket", "tests"]