How to apply unittest.mock.patch 2019.12.1 2022.9.5 Post/Testing/Software Development 38 1 min I’ve noticed a common area of misunderstanding for people newer to Python testing is how to apply mock.patch and where to patch (i.e. what the target positional argument to unittest.mock.patch should be), so I made a video explaining: