Skip to content

Question: setattr Can't Find Attributes  #65

@Yanqiao4396

Description

@Yanqiao4396

I am currently working on a test of authentication for a class and have a self.authenticate attribute in the class. While, I am using monkeypatch, it reports AttributeError: <class 'gatorgrade.output.out_issue_tracker.issueReport'> has no attribute 'authenticate'. Does setattr only support methods?

Screenshot 2023-03-22 at 6 25 42 PM

Screenshot 2023-03-22 at 6 25 24 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions