buzzfeed / caliendo

caliendo
MIT License
16 stars 5 forks source link

Create `replay` decorator #59

Open akellehe opened 10 years ago

akellehe commented 10 years ago

Create a decorator that can be passed a function handle which then watches the handle (by wrapping it) in the context of a patch.

Each time the function is called it should be cached. The calls should then be replayed each time that context is replayed.