is there a simple way of adding __name__ to MagicMock attributes recursively

前端 未结 0 1931
故里飘歌
故里飘歌 2021-01-06 01:22

Statement

when I ask a __name__ of a MagicMock object I get an AttributeError => which is just how MagicMock works I think.

from mock import Magic         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题