Python Tutorial: Unit Testing Your Code with the unittest Module

Python Tutorial: Unit Testing Your Code with the unittest Module

Corey Schafer

6 лет назад

1,364,276 Просмотров

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


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

Cong Chinh Nguyen
Cong Chinh Nguyen - 27.10.2023 17:53

❤❤❤ from Vietnam with huge thanks

Ответить
Raunakk Banerjee
Raunakk Banerjee - 11.10.2023 12:21

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

Ответить
william 234
william 234 - 10.10.2023 10:50

Does this work on Colab notebooks?

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

very good🐾

Ответить
Karl (kkaaarrll)
Karl (kkaaarrll) - 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.

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

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

Ответить
Gaye Demiray
Gaye Demiray - 14.09.2023 01:15

F

Ответить
Furqan Shaheen
Furqan Shaheen - 08.09.2023 15:49

Please could you help me to configure python script with cypress

Ответить
Shraddha Patil
Shraddha Patil - 06.09.2023 10:15

hey corey can you make a "mocking" related video

Ответить
Matteo Ricci
Matteo Ricci - 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 .

Ответить
John Eric
John Eric - 04.09.2023 18:02

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

Ответить
Ernest Essien
Ernest Essien - 03.09.2023 16:16

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

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

Fantastic vid, thanks!!!

Ответить
Ki Pyo
Ki Pyo - 16.08.2023 03:50

Beautifully explained with easy to understand examples!

Ответить
Imad Saddik
Imad Saddik - 14.08.2023 17:36

Thanks

Ответить
Letícia Paes
Letícia Paes - 13.08.2023 21:47

Thank you for this lesson!

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

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

Ответить
R. Lau
R. Lau - 09.08.2023 20:16

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

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

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

Ответить
MysticMan_07
MysticMan_07 - 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?

Ответить