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

Published: 20 August 2018
on channel: Cameron Maske
56,950
452

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.

Play around with this code in your browser: https://repl.it/@cameronmaske/How-To-...

You can also find me on:
Twitter:   / cameronmaske  
Personal Site: https://cameronmaske.com/


On this page of the site you can watch the video online How To Mock Patch A Function (Testing Python With Pytest) with a duration of hours minute second in good quality, which was uploaded by the user Cameron Maske 20 August 2018, share the link with friends and acquaintances, this video has already been watched 56,950 times on youtube and it was liked by 452 viewers. Enjoy your viewing!