How to test your FastAPI application

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

Комментарии • 40

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

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

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

  • @joseortega-sd1hc
    @joseortega-sd1hc 5 месяцев назад

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

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

  • @moneeshkumar1838
    @moneeshkumar1838 Год назад +1

    Great
    Thanks for sharing

  • @DavidSilva-cp8hg
    @DavidSilva-cp8hg Год назад

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

  • @fullstackspiderman
    @fullstackspiderman Год назад

    great one.. thank you sir..

  • @srvazkez
    @srvazkez Год назад +1

    Finally good test tutorial

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

  • @alexandremullerjunior1016
    @alexandremullerjunior1016 9 месяцев назад

    Great video!

  • @LarryWEitel
    @LarryWEitel Год назад

    THANK YOU very insightful!!

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

  • @Alexandrhub
    @Alexandrhub Год назад

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

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

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

  • @ThomasPalma1
    @ThomasPalma1 Год назад

    great!

  • @HadleyHope
    @HadleyHope Год назад

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

  • @JeseHere
    @JeseHere Год назад +1

    你太酷了!

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

  • @exemplles
    @exemplles Год назад

    thx

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