You're great Corey. With use of simple code editor You can explain complicated things. No greenscreen, no slides, just calm and pure explanations. English is a foreign language to me, but Your videos are so understandable, that this is not a problem. Once again thank You very much.
i agree, most of the youtuber prefers to keep their videos short on small topics, but he keeps his videos long and explains in better way... that is why I prefer him over any other coders or youtubers.
This is just plain glorious. If there's such a thing as falling in love with code, this has got to be it. I enjoyed every moment of it. You're amazing, Corey, and you did a wonderful job of very clearly explaining all of it. From where I sit, you created a masterpiece of art. It's simply amazing. Test-driven development, here I come.
in my country, there's an old saying for people with good explanations, "they give you the soup straight to your mouth with a spoon.". This is what are you actually doing I mean a very simplified explanation that even a naive would understand. Thanks for the effort and time you put in those tutorials, I wouldn't have got any of this without them.
am 17 and i think if somehow i manged to make a good career in this field, its all goes upto u sir.... and i wnna say that , cuz ain't able to give u any fund but i always watch the ad till the end..even if its 2 min long.. GOD BLESS U SIR !!!!!!
Bro, thank you so much. I am a python beginner and these tests were just giving me headaches. After watching this? I am not so uneducated anymore. Thank you and keep up the good work.
Corey, I took 3 C/C++ classes at UCSD Extension a few years ago and recieved 3 A's from 2 of the toughest professors at the University. I've watched a dozen of your Python videos and you are even better at teaching programming.
I love the flow in your lectures; you usually respond exactly to the questions that pop up in my head. For instance: the print statements here were so very useful, this is exactly what I would do in trying to understand this on my own machine. You are an absolute life saver, Corey, thank you so much.
I am looking at all of your videos and as your videos are old, I thought lot of comments must be old. But to my surprise I see lot of latest comments which indicate lot of people still following these videos. Cheers to you bro.! I am experienced in Python and really these are the most simple and clear videos I have ever seen.! Your examples are mostly real time scenarios and they are very simple so that everyone can understand. Keep up the good work..!
What kind of losers would dislike this video? Corey you are a time saver. Thanks for sharing with us the fruit of your hard work. You are one of the reasons why I am able to crack interviews and also deliver quality code at my work. Thank you once again.
I made my first python project without implementing a test. Judging from my experience it was really rough, It took me a lot of late night sleep just to see if a feature works the way I intended. Now I am learning testing and trying to apply it in my current project. I hope I had learn testing earlier, before proceeding to create my project. The video uses unit test, while mine was pytest, but hoping the concepts I learn here is same to be applied in pytest. Appreciate videos like these are created for free to everyone.
Those 40 min were absolutely worth it and cleared up the concept of unit tests, especially the last part about mocking was exactly what I needed!. Now I will be able to write some of the first-ever tests for my project, thanks a lot @Corey Schafer
I have already watched many videos on the internet and going through various online courses (paid ones too), and I must say this channel has the best Python videos, from beginner to advanced topics. Thank you very much!
THank you @Corey.. I was struggeling to understand the very basics.. It really helped me to get on my new work.. Thanks a lot for making the community a better place!!!
Finally found my way into my first job in software and your videos have been recommended and instrumental in pulling back so many curtains. Thank you for the clear and informative videos, you're crushing it.
Thanks you so much. I'm from Taiwan and still new to programming but learned a lot from you. If one day I could be as good as you, I also want to share all my skills and knowledge to other people as you did. Hope we all can make the world a bit warmer and nicer :)
Once I read if I can explain things in a very simple way, it means I am the master of it. Totally true. I hope not to forget to donate when I get a job.
Amazing Videos! They are so easy to follow and well thought out. I have had a few instances where the library versions you are using have changed and your explanation of what is going on has allowed me to work through the new syntax in the updated libraries. This one is helping me so much at work at the moment.
Nice now i have a guy I can check out if I am so unfamiliar with a topic that i don't really understand pythons documentation. Piece of advice to everybody: Don't ever thing videos like this are more then a brief introduction into a topic. They are crazy helpful but all they really do is give you a less frustrating way to grasp the basics without being very annoyed by pythons very own documentation. And for gods sake start using the python help function :D
Fantastic videos. I would add that the test cases can be spread across multiple classes. This allows you to group tests together so that you can make good use of setUp() and setUpClass(). For example, if you have multiple tests that require a database, you could group all those tests into a single class and have the setUpClass() method prepare the db. Tests that don't involve the db would go into other test classes. The larger the overall project, the more test classes you are likely to have.
Hey, thanks i am making an interpreter with Python and i wanted to write some tests for it. I was unaware of how to properly do python tests since i have never done them before, so watching this video cleared up a lot of doubts.
I'm a data scientist, but some of my software engineer colleagues have encouraged me to check out testing. Thanks for the video, you've broken it down in a way that's both enjoyable and easy to follow!
Really great video! I have been using unit test a little, but introducing mocking and proper use of teardowns and class methods really gave me a whole new perspective. Really informative stuff.
I gotta say that you just got a new fan, follower! man, I just love your videos and your approach! amazing! thank you so much for such incredible content!
Coming from embedded development this was a new way of testing for me. Normally we would just run stuff on our test rigs but our code base per product wasn't as massive as what I am working on now (cars). Thanks for explaining it so well.
Dear Corey, As I saw other people's comments also, a video on Pytest and Mocking would be great. Maybe you can extend this video and make a part two for mocking and a separate video on Pytest or vice-versa. But we need a video on both topics. It is really relevant and required. Thanks, Swapnadeep
Thank you so much. This is such a brilliant tutorial. As a beginner to programming struggling to understand what tests are and why they even matter, your video really helped me get more than just a conceptual understanding. Really appreciate you taking the time for such a detailed video.
@21:40 DRY - create objects once @22:22 - setup and teardown methods @25:00 - teardown @26:53 - the setup and teardown run before and after every single test what is the way to run something once at the start? @29:00 - how to deal with stuff we have no control over @29:15 - mocking
"You don't have to be an expert at tests." True. I find that the most valuable test is the first one, because it gets the ball rolling and lets you have some idea that automated builds are running, not just "compi9ling."
6 years in, and this vid is still at its best. Thank you Corey. You're awesome
You're great Corey. With use of simple code editor You can explain complicated things. No greenscreen, no slides, just calm and pure explanations. English is a foreign language to me, but Your videos are so understandable, that this is not a problem. Once again thank You very much.
The best place to learn python! videos like these add value to internet :-)
Hey I have a doubt why do we use method why not directly use assertEqual in the class without creating a method and using self
The best place to *start* learning python. Go read the docs now!
Indeed
@@rahulthaker694 4:09 4:08
@ 03:21 4:99
Corey is so good explaining that he doesn't think what he says, he goes smooth with the knowledge. Legend
i agree, most of the youtuber prefers to keep their videos short on small topics, but he keeps his videos long and explains in better way... that is why I prefer him over any other coders or youtubers.
This is just plain glorious. If there's such a thing as falling in love with code, this has got to be it. I enjoyed every moment of it. You're amazing, Corey, and you did a wonderful job of very clearly explaining all of it. From where I sit, you created a masterpiece of art. It's simply amazing. Test-driven development, here I come.
in my country, there's an old saying for people with good explanations, "they give you the soup straight to your mouth with a spoon.". This is what are you actually doing I mean a very simplified explanation that even a naive would understand. Thanks for the effort and time you put in those tutorials, I wouldn't have got any of this without them.
What a perfect way to put it!
The Netherlands? :)
@@HarryPotter2095 no Lebanon
@@hasanfares5774 also Egypt . I guess it is in arab countries :D
in my country we say 'pear,cook;fall into my mouth' with the literal word by word translation xD
am 17 and i think if somehow i manged to make a good career in this field, its all goes upto u sir.... and i wnna say that , cuz ain't able to give u any fund but i always watch the ad till the end..even if its 2 min long..
GOD BLESS U SIR !!!!!!
11:04 you can select add then press ctrl+d to select same word in lines below and then type to use multiple cursor to edit all words together.
You are a straight hero, my man. I'll venmo you $1 for that info. You just saved me hours of life.
thanks man 🙌
@@alenjose3903 ı didnt get it when ı press ctrl+d it deletes the line
@@sonercan4417 i dont remember how it worked bro. I am not using python now specifically atom at this moment. sry
@@alenjose3903 okay bro thx i figured out that it is only working on sublime text anyways thx for replying
It was a really very good moment when I found this channel. Such good, clear and no-nonsense explanations.
I think you deserve roughly half of my salary, since your videos brought me into software development ;)
Keep up that good work
Yea, his videos are so clear! - Consider giving him some money on Patreon, if not done yet ;)
You can give it to him
@@tannermccollins23 yeah he did already.
How to write test for flask aap?
*Wait , you guys getting paid?*
Bro, thank you so much. I am a python beginner and these tests were just giving me headaches. After watching this? I am not so uneducated anymore. Thank you and keep up the good work.
Corey, I took 3 C/C++ classes at UCSD Extension a few years ago and recieved 3 A's from 2 of the toughest professors at the University. I've watched a dozen of your Python videos and you are even better at teaching programming.
Wow, thanks. I appreciate that
That satisfaction I get every time I'm done with any video of yours! Thanks a lot man!
I get that, but because its done.
Everything about these videos are so polished, be it the title, thumbnail, or clear scripts
I love the flow in your lectures; you usually respond exactly to the questions that pop up in my head. For instance: the print statements here were so very useful, this is exactly what I would do in trying to understand this on my own machine. You are an absolute life saver, Corey, thank you so much.
I am looking at all of your videos and as your videos are old, I thought lot of comments must be old. But to my surprise I see lot of latest comments which indicate lot of people still following these videos. Cheers to you bro.! I am experienced in Python and really these are the most simple and clear videos I have ever seen.! Your examples are mostly real time scenarios and they are very simple so that everyone can understand. Keep up the good work..!
Thanks!
Corey is so good explaining that he doesn't think what he says, he goes smooth with the knowledge.
This is the most in depth unit testing tutorial I have seen. Very informative!
What kind of losers would dislike this video? Corey you are a time saver. Thanks for sharing with us the fruit of your hard work. You are one of the reasons why I am able to crack interviews and also deliver quality code at my work. Thank you once again.
Corey, You are more informative than the Python documentation. The main things I do on my current job, are things I`ve learned from you
I made my first python project without implementing a test. Judging from my experience it was really rough, It took me a lot of late night sleep just to see if a feature works the way I intended. Now I am learning testing and trying to apply it in my current project.
I hope I had learn testing earlier, before proceeding to create my project.
The video uses unit test, while mine was pytest, but hoping the concepts I learn here is same to be applied in pytest.
Appreciate videos like these are created for free to everyone.
This channel taught me more about Python than anything else. Kudos!
The best video for learning basic unit test automation with Python. Thank you Corey.
Those 40 min were absolutely worth it and cleared up the concept of unit tests, especially the last part about mocking was exactly what I needed!. Now I will be able to write some of the first-ever tests for my project, thanks a lot @Corey Schafer
I have already watched many videos on the internet and going through various online courses (paid ones too), and I must say this channel has the best Python videos, from beginner to advanced topics. Thank you very much!
THank you @Corey.. I was struggeling to understand the very basics.. It really helped me to get on my new work.. Thanks a lot for making the community a better place!!!
Finally found my way into my first job in software and your videos have been recommended and instrumental in pulling back so many curtains. Thank you for the clear and informative videos, you're crushing it.
I like the simple way of explaining the code and mentioning how all components work. Nice!
Thanks Corey, really succinct, to the point with no waffle. You are very good at this
Thankyou Corey for taking the time to share this valuble resource and doing such a good job of it.
Enjoy watching and learning from these tutorials. I hope that you will keep uploading new videos.
Thanks you so much. I'm from Taiwan and still new to programming but learned a lot from you. If one day I could be as good as you, I also want to share all my skills and knowledge to other people as you did. Hope we all can make the world a bit warmer and nicer :)
That's great to hear! The more teachers the better. Thanks for the kind words.
Once I read if I can explain things in a very simple way, it means I am the master of it. Totally true. I hope not to forget to donate when I get a job.
Amazing Videos! They are so easy to follow and well thought out. I have had a few instances where the library versions you are using have changed and your explanation of what is going on has allowed me to work through the new syntax in the updated libraries. This one is helping me so much at work at the moment.
I had given up on Unit Testing,.. until I watched this video... Thanks...man ..well explained
UR lessons R so practical, rich in content ND easy 2 follow. I am so grateful 4 U 2 share UR knowledge.
I like watching Corey's videos after other's videos as these are more informative and adds more value.
Thank you. SO much better than paid videos.
Nice now i have a guy I can check out if I am so unfamiliar with a topic that i don't really understand pythons documentation. Piece of advice to everybody: Don't ever thing videos like this are more then a brief introduction into a topic. They are crazy helpful but all they really do is give you a less frustrating way to grasp the basics without being very annoyed by pythons very own documentation. And for gods sake start using the python help function :D
Fantastic videos. I would add that the test cases can be spread across multiple classes. This allows you to group tests together so that you can make good use of setUp() and setUpClass(). For example, if you have multiple tests that require a database, you could group all those tests into a single class and have the setUpClass() method prepare the db. Tests that don't involve the db would go into other test classes. The larger the overall project, the more test classes you are likely to have.
Hey, thanks i am making an interpreter with Python and i wanted to write some tests for it. I was unaware of how to properly do python tests since i have never done them before, so watching this video cleared up a lot of doubts.
I'm a data scientist, but some of my software engineer colleagues have encouraged me to check out testing. Thanks for the video, you've broken it down in a way that's both enjoyable and easy to follow!
No words and sentence can be enough to thank for your efforts for such great contents.
Thank you so much!
Great video! Clear and straight to the point thanks!
I'm a pretty experienced dev, very used to writing tests. I *love* this video, watched it just to enjoy your teaching style.
This was really good. To the point, clear and concise. Long video but went by like a breeze.
Your lessons are so practical, rich in content and easy to follow. I am so grateful for you to share your knowledge online!
I think that we could never thank you as much as you deserve. Keep it up please !
Corey, can't thank you enough for this wonderful series. Very well paced and great content! Look forward to your next one.
Really great video! I have been using unit test a little, but introducing mocking and proper use of teardowns and class methods really gave me a whole new perspective. Really informative stuff.
Best video that I've ever seen about unittest
Very helpful video, big thank you. I wasn't able to figure it out from documentation alone.
You have done an excellent job covering topics in your videos. I'll share the channel with my pythonista peeps.
I gotta say that you just got a new fan, follower! man, I just love your videos and your approach! amazing! thank you so much for such incredible content!
Thanks, Shara! Glad you find the videos helpful
Really glad to have come accross this tutorial, subscribed!
Best video of unittest,
Thanks from Argentina
Short intro and straight to the thing. Well prepared, simple yet clear demonstrative examples. Great video, thx man!
Thanks Corey. One of the best explanations of mocking with unittest I have found :)
Best video today I could find! Extraordinary!
Schafer thanks a million times. You saved me alot of time.
Your tutorials are super amazing. I have learnt so much just in 2 days from your channel. Thank you.
I wish I could give Corey's videos double thumbs up 👍👍
Really well-timed step by step tutorial with all the possible unknown terms explained in a comprehensible fashion
I like your simple way of explanation. Keep going!
This is a great tutorial for unit tests. Mock objects starts at 30:43
I came back an used this link to find about mocks, Thank you past me!
This is one of the clearest presentation of Python (and pytest) I've every scene. Truly demystified a lot of it.
Thank you so much for this video! You have answered questions that have puzzled me for so long.
Wonderful! Your explanations make life easier for young devs. Thanks for this ;)
Really good at teaching material with good real world examples
Corey, super video ! Seriously, I'm beginner in Python and you couldn't be clearer than that. Good job !
Thank you very much Mr. Schafer, your video is very clear and you explain that in very easy way! I like it
I keep comming back to your videos. Thank you for such great content.
Beautifully explained with easy to understand examples!
Coming from embedded development this was a new way of testing for me. Normally we would just run stuff on our test rigs but our code base per product wasn't as massive as what I am working on now (cars). Thanks for explaining it so well.
You and your videos are amazing. Thanks a million for helping me getting better and better everyday.
That's a great tutorial, I would recommend it to any beginner Python developer.
I just love the crisp voiceover.
Just what I needed - especially the part on Mock tests. Very well put together
Starting to love Python more and more each day.
One of the most important videos ever made!
An excellent tutorial which demonstrates how to perform unit tests
Dear Corey,
As I saw other people's comments also, a video on Pytest and Mocking would be great. Maybe you can extend this video and make a part two for mocking and a separate video on Pytest or vice-versa. But we need a video on both topics. It is really relevant and required.
Thanks,
Swapnadeep
I spent my valuable 40 mins for the fantastic learning. FYI.. im new to unittest.
This video finally helped me understand how to properly test my code thank you.
I like your videos first and then watch them!! Your videos are just awesome.
Thanks!
Thank you so much. This is such a brilliant tutorial. As a beginner to programming struggling to understand what tests are and why they even matter, your video really helped me get more than just a conceptual understanding. Really appreciate you taking the time for such a detailed video.
@21:40 DRY - create objects once
@22:22 - setup and teardown methods
@25:00 - teardown
@26:53 - the setup and teardown run before and after every single test what is the way to run something once at the start?
@29:00 - how to deal with stuff we have no control over
@29:15 - mocking
ALX brought me here. Thank you Corey!
Corey is such a unsung hero
Did you just explain dunder in one sentence? I love you.
It is a very good introduction to unit testing with python. Thank you!
Your tutorials are awesomely great!!! dude, I'm so grateful to you!!!
This is amazing! Thank you for taking the time to do this.
the best tutorial I've seen so far .... many thank!
As always a top notch video. Can not wait for the Pytest one!
Corey, you are such a saviour. Your videos are just true love. Thanks for making my life so much better owing to your channel. May God bless you.
Best Python Content on RUclips!
you really have a great teaching gift
Your videos are really good! Great explanation. Please do one with Pytest and mocking
"You don't have to be an expert at tests." True. I find that the most valuable test is the first one, because it gets the ball rolling and lets you have some idea that automated builds are running, not just "compi9ling."