Learn Django TDD - Test Driven Development - CRUD

Поділитися
Вставка
  • Опубліковано 4 гру 2024

КОМЕНТАРІ • 40

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

  • @mickjohnston499
    @mickjohnston499 10 місяців тому +1

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

  • @austinlawan3289
    @austinlawan3289 9 місяців тому +1

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

  • @IykeDx
    @IykeDx Рік тому +1

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

  • @raulxcrespo
    @raulxcrespo 2 місяці тому +1

    awesome video, thank you.

  • @5ov4-94
    @5ov4-94 Рік тому +1

    Thank you Stein!

  • @the-antroy
    @the-antroy Рік тому +1

    Wow!
    Thank you so much sir!

  • @petersonfreitas2061
    @petersonfreitas2061 11 місяців тому +1

    Thank you.

  • @bikalpa_kc
    @bikalpa_kc 23 дні тому +1

    Perfect

  • @inteliconn995
    @inteliconn995 Рік тому +1

    Thanks!

  • @nocopyrightgameplaystockvi231
    @nocopyrightgameplaystockvi231 Рік тому +1

    Cool tutorial 🎉

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

  • @ibrahimoglu
    @ibrahimoglu Рік тому +1

    👍

  • @Coden69
    @Coden69 Рік тому +1

    ❤❤

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

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

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

  • @casper-4188
    @casper-4188 Рік тому +1

    ~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)

    • @CodeWithStein
      @CodeWithStein  2 місяці тому

      Hey :-) did you find a solution to this? :-)