From 551e60aa3256165ad6588f7ef7ae28c7f4237969 Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Tue, 8 Oct 2024 06:56:52 +0200 Subject: [PATCH] Fix pytest-asyncio warning --- pyproject.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 17f7f58..5e58118 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,8 +29,6 @@ dependencies = [ ] [project.optional-dependencies] -tests = ["pytest", "pytest-asyncio", "sybil>=6"] -typing = ["mypy>=1.4", "fastapi", "flask", "starlette", "aiohttp", "pyramid"] docs = [ "sphinx>=7.2.2", "sphinx-design", @@ -41,6 +39,7 @@ docs = [ "furo>=2023.8.17", "sybil", "pytest", + "pytest-asyncio", "httpx", "aiohttp", "fastapi", @@ -49,6 +48,8 @@ docs = [ "starlette", "sqlalchemy", ] +tests = ["pytest", "pytest-asyncio", "sybil>=6"] +typing = ["mypy>=1.4", "fastapi", "flask", "starlette", "aiohttp", "pyramid"] dev = ["svcs[tests,typing]", "tox>4", "httpx"] [project.urls] @@ -126,6 +127,7 @@ filterwarnings = [ # Bug in Starlette 0.37.2: https://github.com/encode/starlette/discussions/2603 "ignore:Unclosed :ResourceWarning:anyio.streams.memory", ] +asyncio_default_fixture_loop_scope = "function" [tool.coverage.run]