Python Tutorial: Unit Testing Your Code with the unittest Module

Python Tutorial: Unit Testing Your Code with the unittest Module

Corey Schafer

7 лет назад

1,431,209 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@sudharakafernando4391
@sudharakafernando4391 - 06.08.2023 16:10

Thank you very much for this insightfull video. Learned a lot !!!

Ответить
@Jay07Big
@Jay07Big - 08.08.2023 03:21

I am having an issue with the import calc module, when I write that in my IDE it says “calc is not accessed in pylance” what’s going on with that?

Ответить
@Deto4k
@Deto4k - 08.08.2023 13:48

Great video! It saved me lots of a time and tons of nerves.

Ответить
@RLau-cb1td
@RLau-cb1td - 09.08.2023 20:16

Thank you so much for this video! You have answered questions that have puzzled me for so long.

Ответить
@Ehsan-the
@Ehsan-the - 11.08.2023 00:26

Please make a part 2 of this video to cover more complicated tests❤

Ответить
@leticiapaes3745
@leticiapaes3745 - 13.08.2023 21:47

Thank you for this lesson!

Ответить
@imadsaddik
@imadsaddik - 14.08.2023 17:36

Thanks

Ответить
@kipyo
@kipyo - 16.08.2023 03:50

Beautifully explained with easy to understand examples!

Ответить
@choogiesaur
@choogiesaur - 16.08.2023 18:10

Fantastic vid, thanks!!!

Ответить
@ernestessien2388
@ernestessien2388 - 03.09.2023 16:16

6 years in, and this vid is still at its best. Thank you Corey. You're awesome

Ответить
@johneric2720
@johneric2720 - 04.09.2023 18:02

Great video Corey, I love your detailed explanation and clean use of language😘

Ответить
@matteoricci9129
@matteoricci9129 - 04.09.2023 23:51

you should have used the tearDown method and tested after the tear down for the attribute emp_1 and emp_:2 to be empty before the set up method .

Ответить
@ShraddhaPatil-g1k
@ShraddhaPatil-g1k - 06.09.2023 10:15

hey corey can you make a "mocking" related video

Ответить
@gayedemiray
@gayedemiray - 14.09.2023 01:15

F

Ответить
@zestful14
@zestful14 - 14.09.2023 18:40

Thanks for another fantastic video! Would love to finally see a pytest one :)

Ответить
@Karlkkaaarrll
@Karlkkaaarrll - 15.09.2023 02:13

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.

Ответить
@Zeus-t3i
@Zeus-t3i - 19.09.2023 11:27

very good🐾

Ответить
@william2344
@william2344 - 10.10.2023 10:50

Does this work on Colab notebooks?

Ответить
@raunakkbanerjee9016
@raunakkbanerjee9016 - 11.10.2023 12:22

Why do you not define an init function which is usually the first function inside a class? and what is cls?

Ответить
@congchinh07
@congchinh07 - 27.10.2023 17:53

❤❤❤ from Vietnam with huge thanks

Ответить
@KwamePaquin
@KwamePaquin - 07.12.2023 00:16

cool video)

Ответить
@eleannakritikaki4811
@eleannakritikaki4811 - 09.12.2023 00:41

Thank you so much for this. Great video. Weirdly though, in pycharm,the print statement for the tearDownClass shows up directly after the setUpClass. Is this an IDE 'quirk'? I wonder

Ответить
@JayR98
@JayR98 - 28.12.2023 09:08

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

Ответить
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars - 07.01.2024 09:52

thank you, very cool :)

Ответить
@ahmedmamdouh3964
@ahmedmamdouh3964 - 10.01.2024 01:57

This is just too good to be true

Ответить
@ouadieelouardy1171
@ouadieelouardy1171 - 16.01.2024 15:49

Thank you very much

Ответить
@vgaurav6941
@vgaurav6941 - 12.02.2024 09:25

Why are we writing unittest.main(). I couldn't understand

Ответить
@kapibara2440
@kapibara2440 - 04.03.2024 21:27

Thank you Corey!

Ответить
@vladimiraleksic4066
@vladimiraleksic4066 - 06.03.2024 17:11

Really great video. Thank you a lot.

Ответить
@julianfeezell1644
@julianfeezell1644 - 05.04.2024 02:31

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.

Ответить
@programmingwiththotho4641
@programmingwiththotho4641 - 08.04.2024 16:58

thank you

Ответить
@vahidx1265
@vahidx1265 - 24.05.2024 13:16

🔥

Ответить
@ulfgj
@ulfgj - 30.05.2024 11:55

hello python shifu! that pytest video never came out or am i missing something?

Ответить
@michaelgohn2554
@michaelgohn2554 - 04.06.2024 22:18

Great video! Clear and straight to the point thanks!

Ответить
@porlando12
@porlando12 - 06.06.2024 20:10

Would love to see you cover the pytest framework!

Ответить
@yaozuli546
@yaozuli546 - 23.06.2024 22:01

Quick question, how were you able to partially select your symbol names then replace them? Like the test_add, you were able to select only a few add then replace them with, for example, "subtraction"?

Ответить
@yacoubasylla7358
@yacoubasylla7358 - 09.07.2024 12:58

thank you

Ответить
@sscapture
@sscapture - 27.10.2024 11:27

Very useful

Ответить
@b7sh_b7sh
@b7sh_b7sh - 05.11.2024 00:47

UR lessons R so practical, rich in content ND easy 2 follow. I am so grateful 4 U 2 share UR knowledge.

Ответить
@srinin4600
@srinin4600 - 18.12.2024 04:08

awesome- very helpful to ramp up quickly

Ответить
@Mojojojojojojo-p7v
@Mojojojojojojo-p7v - 30.01.2025 08:18

like before watching

Ответить
@mahak8914
@mahak8914 - 31.01.2025 05:41

Thankyou

Ответить
@JenniferMurry-n8z
@JenniferMurry-n8z - 12.02.2025 07:14

Thank you very much so much for this video. Very informative.

Ответить
@JonaWong-b3z
@JonaWong-b3z - 16.02.2025 23:43

Dude, keep up that good work, I will watch all of your program videos and click the thumbs up button. You explain those amazingly well.

Ответить
@mikaricmikaric
@mikaricmikaric - 19.02.2025 14:24

Nice video, I quite like it. Simple, actionable, adjusted to beginner's knowledge and needs. Keep up the good work :)

Ответить
@CobyHughes-g4k
@CobyHughes-g4k - 04.03.2025 16:53

hi

Ответить
@mrmango9284
@mrmango9284 - 04.03.2025 16:56

Ответить