From 0b42cecde623877dcc475576c34d2d973600f686 Mon Sep 17 00:00:00 2001 From: Kirill Klenov Date: Wed, 31 Jul 2024 16:56:13 +0300 Subject: [PATCH] test: fix --- tests/test_pytest.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/test_pytest.py b/tests/test_pytest.py index c29a6cf..0f728b7 100644 --- a/tests/test_pytest.py +++ b/tests/test_pytest.py @@ -2,6 +2,11 @@ from asgi_tools._compat import aio_sleep +@pytest.fixture(params=["asyncio", "curio"], scope="session") +def aiolib(request): + return request.param + + @pytest.fixture() def name(app): return app.cfg.name @@ -9,14 +14,11 @@ def name(app): async def test_app_imported(app): assert app.cfg.name == "muffin" - await aio_sleep(0.2) async def test_app_available_in_fixture(name): assert name == "muffin" - await aio_sleep(0.2) async def test_app_lifespan(app): assert app.state == "started" - await aio_sleep(0.2)