4. Django REST Framework - Testing with Pytest + Fixtures

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024

ความคิดเห็น • 19

  • @iamrithmic
    @iamrithmic  8 หลายเดือนก่อน

    👽 Join the Discord Server (link in the description)

  • @johnny-the-guitarist
    @johnny-the-guitarist 2 ปีที่แล้ว +6

    Your video is the very best tutorial I have seen about Pytest on youtube. Could you please push code of this lesson to github, main branch has only creating models and crud. Thank you very much.

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

      Thanks a lot for the comment! Yes will do

  • @amogusbokus976
    @amogusbokus976 2 ปีที่แล้ว +2

    Sadly, your github repo doesn't have tests folder

  • @walidsahawneh1022
    @walidsahawneh1022 2 ปีที่แล้ว +2

    Thank you for the tutorial, however I am slightly confused. Why are we using the pytest.mark.django_db - the tests written are not actually "testing" whether the data has been written to a database but rather just examining the response for the post request and comparing it to the payload. I have not experimented with this yet, but I would think you could get away without using the decorator. I might be wrong though.

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

    You forgot to push the tests to the code base

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

    how can we authenticate the user if we are using authToken?

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

    🚀 Transform your web dreams into reality with our expert design and development services! Learn more: www.rithmic.studio

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

    That's very nice of you to add a video for test. I think I've never seen a tutorial that also contains tests (which is literally THE MOST important thing that any code that should have).
    Like those React tutorials where they create an app using create-react-app and then they're like "OK, first we delete the tests" 😆

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

      Haha. Thank you very much

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

    this is perfectly, thank you

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

    Thank you❤

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

    Hello, thank you for the videos, and wanted to ask if you consider to shot a video testing with pytest FastAPI app?

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

      Hey. Yes that is in the books. Hopefully will get around to recording

    • @myrzanurmanbetov1358
      @myrzanurmanbetov1358 2 ปีที่แล้ว

      @@iamrithmic I appreciate it, sorry just wanted to ask you if you have FastAPI projects with Nginx config?

  • @James-l5s7k
    @James-l5s7k 11 หลายเดือนก่อน

    Pytest in django is a hat on a hat. Django has so many tools built in to test, the the request factory.

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

    Thank you so much! You're a lifesaver.

    • @iamrithmic
      @iamrithmic  2 ปีที่แล้ว

      More than welcome 🙏

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

    This is functional test or is it unit test??