Git Product home page Git Product logo

Comments (5)

Kludex avatar Kludex commented on July 23, 2024 8

You need to wait for the new release of both Starlette, and FastAPI.

from starlette.

JaimeFLandbot avatar JaimeFLandbot commented on July 23, 2024 4

This is unclear to me.

I'm using version starlette==0.36.3 that comes from fastapi

image

But it still shows the warning

image

Is there any specific change I need to do?

from starlette.

TheNotary avatar TheNotary commented on July 23, 2024 2

Btw, you can make all the example documentation work fine without warnings by using httpx==0.26.0.

from starlette.

keakon avatar keakon commented on July 23, 2024 1
transport = ASGITransport(app=app)

def async_client():
    return AsyncClient(transport=transport, base_url="http://test")

@pytest.mark.asyncio
async def test_xxx():
    async with async_client() as client:
        response = await client.get('/xxx')

from starlette.

Kludex avatar Kludex commented on July 23, 2024

We need to pass transport instead of app to httpx.Client, yeah.

from starlette.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.