[issue32952] Add __qualname__ for attributes of Mock instances

2019-12-13 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: create_autospec already does recursive spec setting on the class and it has the attributes/methods mocked to retain attributes but doesn't copy the metadata of the original methods to the mock itself. I am not sure spec_set needs to do more stuff t

[issue32952] Add __qualname__ for attributes of Mock instances

2019-12-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +michael.foord versions: +Python 3.9 -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list m

[issue32952] Add __qualname__ for attributes of Mock instances

2019-12-13 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue32952] Add __qualname__ for attributes of Mock instances

2018-02-25 Thread Sergey Kostyuk
New submission from Sergey Kostyuk : Good day. I have a question (or proposal, if you like) For now Mocks from unittest.mock module allows to mimic an interface of a some class or object instance. They pass isinstance checks, they allows to wrap callables with respect to their arguments. But t