Learn Django TDD - Test Driven Development - CRUD

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

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

  • @aditya.01020
    @aditya.01020 ปีที่แล้ว +11

    Finally, a video about testing in Django!!!

  • @unl0ck998
    @unl0ck998 ปีที่แล้ว +5

    I'm a newbie in TDD and this is the best tut I've found, thanks. Others start meandering around concepts, your straight to practice approach is appreciated.

  • @raulxcrespo
    @raulxcrespo 15 วันที่ผ่านมา +1

    awesome video, thank you.

    • @CodeWithStein
      @CodeWithStein  15 วันที่ผ่านมา

      You're welcome :-D

  • @austinlawan3289
    @austinlawan3289 7 หลายเดือนก่อน +1

    Thank you so much for this video. I have learned a lot from following this tutorial.

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

    I just completed this video Stein, and I am really gratefull for it. cheers!

  • @mickjohnston499
    @mickjohnston499 8 หลายเดือนก่อน +1

    Fantastic intro to django and tdd, thank you so much!

    • @CodeWithStein
      @CodeWithStein  7 หลายเดือนก่อน

      Thanks, glad you liked it :-D

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

    Can M make changes to this and showcase it as project in ny resume?? Will it be good?

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

      Sure, do what you want ☺️ make as many changes as you can to show employers what you’re able to do 👍🏻

  • @casper-4188
    @casper-4188 ปีที่แล้ว

    ~19.10: when I run the test, it doesn't see the last (6th) def function. Overall, I have 6 defs as you, but in console it shows that only 5 tasks are completed successfully:
    def detail_page_has_correct_content(self):
    response = self.client.get(f'/{self.task.id}/')
    self.assertContains(response, self.task.title)
    self.assertContains(response, self.task.description)

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

    Sadly not really TDD as it is ment to be.

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

      What do you mean? ☺️

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

      @@CodeWithStein you are working with a real database in your tests. this is bad, because it will cause your tests not to be atomic and slow. second: you write code (class Task -> title and description) without a specified need in the first place. To be honest, I stopped watching after chapter Model testing.

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

      @myscipper the test command from Django automatically creates a temporary db. Thanks for the tip on the rest though ☺️

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

    Quality stuff please also make a Video on error handling

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

      Thanks :-) Good idea, will see what I can do :-D

  • @5ov4-94
    @5ov4-94 ปีที่แล้ว +1

    Thank you Stein!

  • @the-antroy
    @the-antroy ปีที่แล้ว +1

    Wow!
    Thank you so much sir!

  • @petersonfreitas2061
    @petersonfreitas2061 9 หลายเดือนก่อน +1

    Thank you.

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

      You’re welcome 😁

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

    it would be great if You made a little tutorial on how to use vscode's testing tool (the erlenmeyer in the left navbar) with django in virtual environment. i can't figure out myself how it works: either it doesn't detect all my tests (but some yes), or it doesn't execute them well... kinda problematic, isn't it?

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

      bonus: do it with separated django config modules for... dev and production (unittest discover doesn't find tests)

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

    Thanks!

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

    Cool tutorial 🎉

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

    ❤❤

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

    👍