I use Mock to, well mock, entire modules for tests. Mock duplicates entire modules with given functions to simulate original functions.
I try to mock one specific module used by my decorator, and it doesn't seem to be working.
I'm assuming decorator does its magic in compile time, locking me out of the mocking in runtime.
Do you know if I can test for example, decorated controller functions bypassing the decorator?
I use Mock to, well mock, entire modules for tests. Mock duplicates entire modules with given functions to simulate original functions.
I try to mock one specific module used by my decorator, and it doesn't seem to be working. I'm assuming decorator does its magic in compile time, locking me out of the mocking in runtime.
Do you know if I can test for example, decorated controller functions bypassing the decorator?