How to test your FastAPI application

Поділитися
Вставка
  • Опубліковано 26 жов 2024

КОМЕНТАРІ • 40

  • @maroben225
    @maroben225 Рік тому +7

    Nice video, it is amazing to see u on youtube 🎉, i would suggest that you just try to make microservices and make them communicate with each other and show us the industry standars and we can go from there .. really excited to have u on youtube really

  • @ptmcg
    @ptmcg Рік тому +8

    Nice video, I want us to start using FastAPI more at work. (The VSCode assistance is pretty amazing!)
    To help you get used to looking at the camera when you speak, put a little figure (a LEGO character will do) next to your camera, and talk to it. This will draw your eyes from the screen where you are coding to the camera, and your viewers will feel like you are talking to them more directly.

  • @seeds_of_growth-yi5gx
    @seeds_of_growth-yi5gx Рік тому +7

    An idea: to get into the architecture of Starlette, so people have a deeper understanding of what's going on under the hood.
    An approach I use to understand the internals of things, is to debug my way there, so could be that you inspect a request and explain what's happening end-to-end
    Internals talk is always helpful and usually inspiring
    Best! and thank you for sharing

  • @DreamsAPI
    @DreamsAPI Рік тому +1

    Thank you, please keep making more, I know very little and learning is fun about fastapi, starlette, pydantic

  • @ricopunojr.4137
    @ricopunojr.4137 10 місяців тому +1

    I'm learning FastAPI project for my company. Hope to you learn from you in the coming months.
    Subscribed!

    • @fastapiexpert
      @fastapiexpert  Місяць тому

      Thanks! I'll continue the videos those days.

  • @vlntsolo
    @vlntsolo Рік тому +1

    Nice start! Would you use Hypothesis framework with Fastapi? And what's the best way to test CRUD endpoints with async db connection. Should we stick to something simple like async SQLlite?

  • @moneeshkumar1838
    @moneeshkumar1838 Рік тому +1

    Great
    Thanks for sharing

  • @esrefzekiparlak
    @esrefzekiparlak Рік тому +1

    Thanks for sharing your knowladge.

  • @DreamsAPI
    @DreamsAPI Рік тому

    Anything and everything relating to API. Can you do a video of lessons learned or hidden feature sof fastapi that a beginner would not know, like yesterday I learned that order in which endpoints are placed matters, I am still learning as to how that happens. Thank you for sharing and teaching, appreciate it.

  • @joseortega-sd1hc
    @joseortega-sd1hc 5 місяців тому

    Thanks for the video, keep going, you have new subscriber!!

  • @LarryWEitel
    @LarryWEitel Рік тому

    THANK YOU very insightful!!

  • @NikolaiDimitrov-ez5ot
    @NikolaiDimitrov-ez5ot 9 місяців тому

    Trying to do it the async way I get an error: "TypeError: 'AsyncClient' object does not support the context manager protocol"

  • @DavidSilva-cp8hg
    @DavidSilva-cp8hg Рік тому

    Excelente conteúdo! Parabéns! Muito legal ver BR decolando!

  • @srvazkez
    @srvazkez Рік тому +1

    Finally good test tutorial

  • @alexandremullerjunior1016
    @alexandremullerjunior1016 9 місяців тому

    Great video!

  • @fullstackspiderman
    @fullstackspiderman Рік тому

    great one.. thank you sir..

  • @ThomasPalma1
    @ThomasPalma1 Рік тому

    great!

  • @davidinawe791
    @davidinawe791 7 місяців тому

    Hi.
    I have been trying find out a specific thing about testing a FastAPI application in the last week, with no sucess. Maybe someone here can help me?:
    At what point is the server actually started, like it would normally with f.e. "hypercorn app:main"? Is this part of the TestClient (and also the AsyncClient)? I need to integrate a restart of the server into the test. If I am misunderstanding something, please let me know aswell!

  • @NumbSoul02
    @NumbSoul02 Рік тому

    great stuff.
    whats the theme and whats the copilot extension name?

  • @rzub2212
    @rzub2212 Рік тому

    Hello thanks for this video. I subscribed for your channel. All the best for you. I just want to ask you, please use a bigger font-size, because I am struggling to see the code editor. thanks again 💐

  • @Alexandrhub
    @Alexandrhub Рік тому

    Hello. Great video, what's the name of this autocompletion extension?

  • @HadleyHope
    @HadleyHope Рік тому

    Nice how about something hooking up fastapi, a db and pandas to process data and display a chart over several episodes

  • @maxjokar7920
    @maxjokar7920 Рік тому

    hello, thanks for your content , I have a question , could not find it regarding websockets, the server gives error failed ,403, I did many research , chatGDP etc but could not handle it ,
    i was wondering if you can give me your own idea or tips :)

  • @JeseHere
    @JeseHere Рік тому +1

    你太酷了!

  • @exemplles
    @exemplles Рік тому

    thx

  • @yevhenKaskov
    @yevhenKaskov Рік тому

    These examples with async tests work only with one endpoint - but with 2+ endpoint it's not working.
    Especially if you have many async endpoints and async client for connecting to DB (MongoDB in my case).
    I have (PytestUnhandledCoroutineWarning) and (RuntimeError: Event loop is closed) errors, trying many variants combinations installed modules.
    No one studies the correct way, even official documentation fastapi.
    All give one primitive example with "hello world".
    I propose next time to make multiprocessing demonstration tutorial with one thread example.
    Sorry. I've reached my limit.

  • @fazlehadiazmat7g803
    @fazlehadiazmat7g803 3 місяці тому

    he types insanely fast

  • @uuuummm9
    @uuuummm9 Рік тому

    Why is this all so complicated? Why can we not just declare "async def test..." and it just ... works without fixtures, loops, plugins, with or without with? Testing is such a fundamental thing.
    It feels like it all just so fresh and not ready for a real production use 😢

  • @1flovera
    @1flovera Рік тому

    Well, a feedback is: be more serious and structure with your videos, I see sometimes your thoughts are not direct. Also you didn't fix your exception at the end of the video, which makes me wonder about the worth of the whole video.

  • @gabrielrcarmo
    @gabrielrcarmo Рік тому +1

    great!