Dynamically modifying run-time behavior by replacing program elements with new program elements
I need to perform some fairly simple tasks after my Django environment has been "fully loaded". More specifically I need …
python django monkeypatching django-signalsI have several objects of different kinds (different function names, different signatures) and I monkey patch them to have a …
python inheritance metaclass monkeypatchingFor testing reasons, I need to be able to mock the inner/original function of a decorated one which is …
python unit-testing mocking decorator monkeypatchingI don't want to discuss the merits of this approach, just if it is possible. I believe the answer to …
java reflection monkeypatchingI would like to add a field to the Django FlatPage database model, but I do not really know how …
django django-models monkeypatchingYou can do this in Python, but is it possible in PHP? >>> def a(): print 1 ... >>&…
php function monkeypatchingI got the following function to test: my_package.db_engine.db_functions.py: from ..utils import execute_cmd from …
python unit-testing mocking monkeypatchingI've come across a few comments here and there about how it's frowned upon to modify a JavaScript object's prototype? …
javascript monkeypatchingI understand that if go code is structured such that it's programmed to interfaces, it's trivial to mock; however, I'm …
go mocking monkeypatchingI work with python and I'm a bit new to testing. I often see tests replacing an external dependency with …
python unit-testing testing mocking monkeypatching