Hacker News new | past | comments | ask | show | jobs | submit login

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 ?




Monkey 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: