Monkey patch - fixture

  • A “monkey patch” is a dynamic modification of a class or module during runtime
  • During testing, “monkey patching” is a convenient way to take over part of the runtime environment of the code under test and replace either input dependencies or output dependencies with objects or functions that are more convenient for testing.
image

References

SuperMade with Super