dingus icon indicating copy to clipboard operation
dingus copied to clipboard

returner() doesn't record method calls

Open garybernhardt opened this issue 14 years ago • 1 comments

Imported from BitBucket:

Reported by Gary Bernhardt / garybernhardt, created 6 months ago.

A method created with returns= records its calls: >>> d = Dingus(x__returns=5) >>> d.x() 5 >>> d.calls [('x', (), {}, 5)] but a method created with returner() doesn't: >>> d = Dingus(x=returner(5)) >>> d.x() 5 >>> d.calls []

garybernhardt avatar Dec 05 '10 11:12 garybernhardt

I want to deprecate "returner"; it's confusing anyway.

garybernhardt avatar Jan 12 '11 01:01 garybernhardt