2 ms·
Mocks are terrible and should almost never be used, but this wasn't a mock. This was a monkeypatch. Does anyone expect that their software would function prop
by gowld 7y ago
Mocks are terrible and should almost never be used, but this wasn't a mock. This was a monkeypatch.
Does anyone expect that their software would function properly in the face of arbitrary changes patched in by untrusted third parties ?
- kortilla 7y agoMonkey patching is a key feature of the python mock library. Get used to it if you’re getting into python development because you’re going to come across it.