how to unit test flask routes and requests with pytest

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024
  • github.com/aar...
    How to unit test flask routes and requests with pytest. Topics covered include unit testing GET request route and unit testing a POST request route that includes headers and a request body / payload.

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

  • @tstudying5319
    @tstudying5319 Год назад +2

    my left ear is now quite educated thanks!!

  • @saurabhchaturvediscientist
    @saurabhchaturvediscientist 4 года назад +1

    Clear and to-the-point video to kickstart testing of my Flask apps. Thanks!

  • @dafaa9628
    @dafaa9628 3 года назад +7

    windows+u > audio > search > mono audio > turn on
    thank me later

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

      You a saviour .... i was going mad thinking that something was wrong with my wireless earphones

  • @killaQuip
    @killaQuip 4 года назад +3

    Just adding a codebase means so much. Thanks!

  • @janneman1274
    @janneman1274 4 года назад +5

    helpful video, thanks
    p.s. everyone, who watches this set the speed to 1.5 :)

  • @ffwang0306
    @ffwang0306 5 лет назад +3

    It's very helpful for a beginner... thanks,

  • @BrendanMetcalfe
    @BrendanMetcalfe 3 года назад +3

    Zoom in more next time!

  • @shrishtychandra2003
    @shrishtychandra2003 3 года назад +1

    Thanks for the great video

  • @Micaeljm
    @Micaeljm 3 года назад +1

    For some reason the right audio channel is muted :(

    • @Micaeljm
      @Micaeljm 3 года назад

      @Leandro Koller Possibly xD

  • @ashishjaiswal3886
    @ashishjaiswal3886 3 года назад

    You just scared me, and I thought one side of my earphone is not working.
    Duh

  • @petrsonnk
    @petrsonnk 2 года назад

    In test-routes.py file you keep repeating the same identical fragments of code. You also don't follow the testing guides which are in the official Flask documentation e.g. you don't use pytest decorators. Your example is simply wrong - this is not the way Flask apps should be testes

  • @justineontita
    @justineontita 5 лет назад +1

    I can't hear him well

    • @Micaeljm
      @Micaeljm 3 года назад

      Audio is only coming from the left channel. That could explain why you can't hear it well.

  • @sugarloafandacupofjoe4654
    @sugarloafandacupofjoe4654 3 года назад

    Hi Aaron, thank you for this video, very informative! Keep up the good work. Content is great, but it seems you might want to touch up on your editing, I just started making tutorials myself, so I can help you that. Reply if you're interested :)

  • @payaldas5597
    @payaldas5597 4 года назад

    can you please improve the video qaulity

  • @ryan.aquino
    @ryan.aquino 4 года назад

    Zoom