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:
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: