How to test your FastAPI application

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ธ.ค. 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.

    • @fastapiexpert
      @fastapiexpert  ปีที่แล้ว

      Thanks Paul! I'll do that! 😁🙏

  • @ricopunojr.4137
    @ricopunojr.4137 11 หลายเดือนก่อน +1

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

    • @fastapiexpert
      @fastapiexpert  2 หลายเดือนก่อน

      Thanks! I'll continue the videos those days.

  • @DreamsAPI
    @DreamsAPI ปีที่แล้ว +1

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

  • @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

    • @fastapiexpert
      @fastapiexpert  ปีที่แล้ว +3

      Nice idea! I'm going to do it! :)

  • @joseortega-sd1hc
    @joseortega-sd1hc 6 หลายเดือนก่อน

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

    • @fastapiexpert
      @fastapiexpert  2 หลายเดือนก่อน

      Thanks! I'll continue!

  • @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.

  • @esrefzekiparlak
    @esrefzekiparlak ปีที่แล้ว +1

    Thanks for sharing your knowladge.

  • @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?

  • @alexandremullerjunior1016
    @alexandremullerjunior1016 10 หลายเดือนก่อน

    Great video!

  • @NikolaiDimitrov-ez5ot
    @NikolaiDimitrov-ez5ot 10 หลายเดือนก่อน

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

  • @moneeshkumar1838
    @moneeshkumar1838 ปีที่แล้ว +1

    Great
    Thanks for sharing

  • @DavidSilva-cp8hg
    @DavidSilva-cp8hg ปีที่แล้ว

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

    • @fastapiexpert
      @fastapiexpert  11 หลายเดือนก่อน

      Obrigado David! :)

  • @srvazkez
    @srvazkez ปีที่แล้ว +1

    Finally good test tutorial

  • @fullstackspiderman
    @fullstackspiderman ปีที่แล้ว

    great one.. thank you sir..

  • @davidinawe791
    @davidinawe791 9 หลายเดือนก่อน

    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!

  • @Alexandrhub
    @Alexandrhub ปีที่แล้ว

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

    • @fastapiexpert
      @fastapiexpert  ปีที่แล้ว

      I think you mean the GitHub copilot?

  • @NumbSoul02
    @NumbSoul02 ปีที่แล้ว

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

  • @LarryWEitel
    @LarryWEitel ปีที่แล้ว

    THANK YOU very insightful!!

  • @gabrielrcarmo
    @gabrielrcarmo ปีที่แล้ว +1

    great!

  • @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 :)

  • @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 💐

  • @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 4 หลายเดือนก่อน

    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.

  • @ThomasPalma1
    @ThomasPalma1 ปีที่แล้ว

    great!