Skip to content

Ignore some warnings and/or fix issue with @property #257

Closed
@samuelint

Description

@samuelint

How to ignore some warnings? For example MissingSpecAttributeWarning

The problem, is that decoy see a missing spec when using @property on a class. But the stubbing / verify work perfectly.

Example:

class MyClass:
  @property
   def my_property(self) -> Some:
        return MyProperty()

Short term, how to ignore the warning so it does not pollute the pytest log?
Long term: is it possible to fix the @property issue?

Thanks!
BTW, this library is awesome. It clearly do not have enough stars

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