You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Environment
klio*
version: 21.2.0rc1Description of the bug
Adding
@decorators.timeout(seconds=30)
to theprocess
method ofProcessEncode
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 theprocess
method that calls Blob's mocked method and observe it not being called anymore.The text was updated successfully, but these errors were encountered: