iocave/monkey-patch

Question: setattr Can't Find Attributes

Opened this issue · 0 comments

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