We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11bfe35 commit 69f9de0Copy full SHA for 69f9de0
tests/main/test_generated_client.py
@@ -5,7 +5,7 @@
5
6
import pytest
7
from click.testing import CliRunner
8
-from httpx import AsyncClient
+from httpx import ASGITransport, AsyncClient
9
10
from ariadne_codegen.main import main
11
@@ -46,7 +46,8 @@ def generated_client(tmp_path_factory):
46
47
@pytest.fixture
48
def http_client():
49
- return AsyncClient(base_url="http://127.0.0.1:8000", app=api_app)
+ transport = ASGITransport(app=api_app)
50
+ return AsyncClient(base_url="http://127.0.0.1:8000", transport=transport)
51
52
53
0 commit comments