Skip to content

returner() doesn't record method calls #4

@garybernhardt

Description

@garybernhardt

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
[]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions