The Ultimate Guide To Using Pytest Monkeypatch with 2 Code Examples
Have you heard of monkeypatch
but have no idea what it means?
Or maybe you’ve even seen it in your company’s code base and wondered why your colleagues use it.
Rather than go through complex documentation or a bunch of Stack Overflow posts, let’s understand what is monkeypatching
at a high level and when and how we can use it to improve Unit Testing.