Fix tests in examples/miniapps/fastapi

This commit is contained in:
Aksarin Mikhail 2022-09-09 10:25:49 +05:00
parent 3858cef657
commit e7706b1180

View File

@ -3,13 +3,14 @@
from unittest import mock from unittest import mock
import pytest import pytest
import pytest_asyncio
from httpx import AsyncClient from httpx import AsyncClient
from giphynavigator.application import app from giphynavigator.application import app
from giphynavigator.giphy import GiphyClient from giphynavigator.giphy import GiphyClient
@pytest.fixture @pytest_asyncio.fixture
async def client(): async def client():
async with AsyncClient(app=app, base_url="http://test") as client: async with AsyncClient(app=app, base_url="http://test") as client:
yield client yield client