Skip to content

Spying on properties #35

Open
Open
@blueyed

Description

@blueyed

I've tried to use spy on object properties, but it fails with AttributeError: can't set attribute in unittest/mock.py.

I've started looking into adding support for (through PropertyMock), but failed to make it work without accessing/calling the property method during setup of the spy - it would be better to only call it when it's accessed from the test.

I would appreciate any feedback / help in this regard.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions