Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
import pytest
import httpx
-from httpx import ASGITransport
async def hello_world(scope, receive, send):
@pytest.mark.anyio
async def test_asgi_exc_no_raise():
- transport = ASGITransport(app=raise_exc, raise_app_exceptions=False)
+ transport = httpx.ASGITransport(app=raise_exc, raise_app_exceptions=False)
async with httpx.AsyncClient(transport=transport) as client:
response = await client.get("http://www.example.org/")