Not sure why this is not working
jiz17043 opened this issue · 3 comments
jiz17043 commented
The-Compiler commented
Not sure off hand what the issue is, but looks like you're not even using pytest-mock in that screenshot - so this isn't an issue with the plugin.
jiz17043 commented
I would like to ask for any suggestions if I want to mock a function.
nicoddemus commented
@jiz17043 see this section in the docs, as it is likely relevant:
https://docs.python.org/3/library/unittest.mock.html#where-to-patch