I'm trying to mock file open, and all of the examples show that I need to
@patch('open', create=True)
but I keep getting
Need a valid target to patch. You supplied: 'open'
I know patch needs the full dotted path of open
, but I have no idea what it is. As a matter of fact, I'm not even sure that's the problem.