Closed FlyinPancake closed 1 year ago
Same as this: https://github.com/sanic-org/sanic-testing/pull/43
Will try and get that fix out shortly.
Thanks @ahopkins :heart:
Strangely ReusableClient worked for me although quite it was quite buggy
Should be resolved now
I tried to run the async test and it failed.
Error
How to reproduce
test_test.py
file with this contents@pytest.fixture def app(): sanic_app = Sanic(name)
@pytest.mark.asyncio async def test_basic_asgi_client(app): request, response = await app.asgi_client.get("/")
aiofiles==0.8.0 anyio==3.6.1 attrs==21.4.0 certifi==2022.6.15 h11==0.12.0 httpcore==0.15.0 httptools==0.4.0 httpx==0.23.0 idna==3.3 iniconfig==1.1.1 multidict==6.0.2 packaging==21.3 pluggy==1.0.0 py==1.11.0 pyparsing==3.0.9 pytest==7.1.2 pytest-asyncio==0.18.3 PyYAML==6.0 rfc3986==1.5.0 sanic==22.6.0 sanic-ext==22.6.2 sanic-routing==22.3.0 sanic-testing==22.6.0 sniffio==1.2.0 tomli==2.0.1 ujson==5.4.0 uvloop==0.16.0 websockets==10.3