This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Erik Byström
Recipients Erik Byström, cheryl.sabella, docs@python, mariocj89, xtreak
Date 2019-10-30.08:35:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1572424530.47.0.461248894344.issue30548@roundup.psfhosted.org>
In-reply-to
Content
Yes, you're right. I do think the docs are a bit misleading.

Maybe something like this would make it more clear?

"If a class is used as a spec then the returned object will be a mock of that class. When the constructor of the returned mock class is invoked an instance object is returned that has the same spec as a normal instance object would have. By passing instance=True you can directly create a mock instance of the class."

If not, feel free to close this issue.
History
Date User Action Args
2019-10-30 08:35:30Erik Byströmsetrecipients: + Erik Byström, docs@python, cheryl.sabella, mariocj89, xtreak
2019-10-30 08:35:30Erik Byströmsetmessageid: <1572424530.47.0.461248894344.issue30548@roundup.psfhosted.org>
2019-10-30 08:35:30Erik Byströmlinkissue30548 messages
2019-10-30 08:35:30Erik Byströmcreate