How To Mock Patch A Function (Testing Python With Pytest)

preview_player
Показать описание
In this video, see how to use mock to patch a random integer function to return the same number each time to make the code easier to test.

You can also find me on:
Рекомендации по теме
Комментарии
Автор

By far, the most "straight to the point" video out there. Hats off to you, sir.

anibaldk
Автор

This is the most straightforward tutorial I've ever seen. Short, complete and to the point. Good job.

yasharzargari
Автор

I've been trying to figure out this mock patching stuff for over a week. Documentation has been everywhere but nothing explaining it in detail. This 2 minute video explained everything I was doing wrong. Straight and to the pointg. THANK YOU!

FatFarmOwl
Автор

Best video series on Pytest on youtube. Love that you keep it simple and quick and it gives a good overview for someone new to to Pytest.

smellypunks
Автор

This is SO HELPFUL, been bashing my head against a wall with mocking for days and this has solved my problems! Thank youu

jessicasmith
Автор

Thank you kind sir. This was straight forward! Learned faster than talking with a code AI :P

Gamaoua
Автор

Learned more in 2 minutes than another 30 minute video I just tried. Thank you!

MatthewMYoung
Автор

Great and straight forward video :) How about video about mocking API? :)

fdolsky
Автор

is there anything like pytest Mock or are you using pytest and then unitest mock in the same?

Rootkit-eyvd