Environment
klio* version: 21.2.0rc1
- Operating System: macOS Big Sur 11.2.3
- Python version: 3.8.7
- Docker version: 3.2.2
Description of the bug
Adding @decorators.timeout(seconds=30) to the process method of ProcessEncode class breaks @mock.patch decorator.
In my case, I have @mock.patch("google.cloud.storage.Blob") and it stops working after I add @decorators.timeout to process.
What you expected to happen
I expect Blob mock to be injected and its methods to be called and assertable in the tests.
How to reproduce (as minimally and precisely as possible)
Add @decorators.timeout to the process method that calls Blob's mocked method and observe it not being called anymore.
Environment
klio*version: 21.2.0rc1Description of the bug
Adding
@decorators.timeout(seconds=30)to theprocessmethod ofProcessEncodeclass breaks@mock.patchdecorator.In my case, I have
@mock.patch("google.cloud.storage.Blob")and it stops working after I add@decorators.timeoutto process.What you expected to happen
I expect Blob mock to be injected and its methods to be called and assertable in the tests.
How to reproduce (as minimally and precisely as possible)
Add
@decorators.timeoutto theprocessmethod that calls Blob's mocked method and observe it not being called anymore.