From e7706b118094587cb77dc250d684ded70385fa6f Mon Sep 17 00:00:00 2001 From: Aksarin Mikhail Date: Fri, 9 Sep 2022 10:25:49 +0500 Subject: [PATCH] Fix tests in examples/miniapps/fastapi --- examples/miniapps/fastapi/giphynavigator/tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/miniapps/fastapi/giphynavigator/tests.py b/examples/miniapps/fastapi/giphynavigator/tests.py index 2b57d50d..05b2addf 100644 --- a/examples/miniapps/fastapi/giphynavigator/tests.py +++ b/examples/miniapps/fastapi/giphynavigator/tests.py @@ -3,13 +3,14 @@ from unittest import mock import pytest +import pytest_asyncio from httpx import AsyncClient from giphynavigator.application import app from giphynavigator.giphy import GiphyClient -@pytest.fixture +@pytest_asyncio.fixture async def client(): async with AsyncClient(app=app, base_url="http://test") as client: yield client