![Danny's tech notebook | 丹尼技術手札: [Python] How can I patch a Python decorator before it wraps a function? Danny's tech notebook | 丹尼技術手札: [Python] How can I patch a Python decorator before it wraps a function?](https://1.bp.blogspot.com/-u-Euu_BqzVw/VhTeYgqyH0I/AAAAAAAACss/qmVuYtd2Bzw/s1600/Screen%2BShot%2B2015-10-07%2Bat%2B4.56.39%2BPM.png)
Danny's tech notebook | 丹尼技術手札: [Python] How can I patch a Python decorator before it wraps a function?
unittest.mock.patch: Double patching instance method: AttributeError: Mock object has no attribute '__name__' · Issue #70891 · python/cpython · GitHub
![python - Pytest mock.patch requests AttributeError: does not have the attribute 'json' - Stack Overflow python - Pytest mock.patch requests AttributeError: does not have the attribute 'json' - Stack Overflow](https://i.stack.imgur.com/fQLeI.png)