Monkey-patch Python class Monkey Patch Python Classes A Comprehensive Guide In Python programming a technique known as monkey patching allows developers to modify or extend the behavior 3 min read 08-10-2024 3
How to remove duplication of loguru logger patching in pytest How to Remove Duplication of Loguru Logger Patching in Pytest When working with the Loguru logger in Python developers often face a challenge while writing unit 2 min read 30-09-2024 8
typescript: transform property to function call Transforming Properties to Function Calls in Type Script In the world of Type Script developers often encounter scenarios where they need to convert object prop 2 min read 28-09-2024 7
MonkeyPatching python submodule Monkey Patching Python Submodules A Powerful Technique But Use With Caution Monkey patching is a powerful technique in Python that allows you to dynamically mod 2 min read 13-09-2024 16
How to add property to a class dynamically? Dynamically Adding Properties to Python Classes A Practical Guide Creating a mock class that mimics a database result set is a common task in Python development 2 min read 07-09-2024 27
Opposite results between `bool(x)` and `x.__bool__()` after patching The Surprising Behavior of Monkey Patching bool in Python Have you ever encountered a situation where monkey patching a classs bool method resulted in seemingly 2 min read 01-09-2024 16
monkeypatch logging basicConfig with pytest Monkeypatching logging basic Config with pytest A Comprehensive Guide Testing logging configurations can be tricky especially when you need to ensure your code 4 min read 28-08-2024 26