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.
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?
@@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.
~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)
Finally, a video about testing in Django!!!
Yeah :-D
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.
Thanks for the feedback :-D
Fantastic intro to django and tdd, thank you so much!
Thanks, glad you liked it :-D
Thank you so much for this video. I have learned a lot from following this tutorial.
Great 😁😁
I just completed this video Stein, and I am really gratefull for it. cheers!
Great :-D
awesome video, thank you.
You're welcome :-D
Thank you Stein!
😁😁
Wow!
Thank you so much sir!
You’re welcome 😁
Thank you.
You’re welcome 😁
Perfect
Thanks 😁
Thanks!
You’re welcome 😁😁
Cool tutorial 🎉
Thank you :-D
Quality stuff please also make a Video on error handling
Thanks :-) Good idea, will see what I can do :-D
👍
:-)
❤❤
:-)
Can M make changes to this and showcase it as project in ny resume?? Will it be good?
Sure, do what you want ☺️ make as many changes as you can to show employers what you’re able to do 👍🏻
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?
bonus: do it with separated django config modules for... dev and production (unittest discover doesn't find tests)
Sadly not really TDD as it is ment to be.
What do you mean? ☺️
@@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.
@myscipper the test command from Django automatically creates a temporary db. Thanks for the tip on the rest though ☺️
~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)
Hey :-) did you find a solution to this? :-)