DEV Community

Discussion on: Mocking by Adding Attributes to Functions

Collapse
 
wrldwzrd89 profile image
Eric Ahnell

I'm sure you could get really creative by applying this concept at the metaclass level, to substitute mocks for the real thing without changing the actual function calls... but that's a topic for another post! Love the concept though.