-
Notifications
You must be signed in to change notification settings - Fork 842
Comments
Support decoration of async functions #767
Conversation
81f873a to
5d79d22
Compare
Signed-off-by: Yury Pliner <yury.pliner@gmail.com>
5d79d22 to
29f5307
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No typestub is available
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is better to check the expected duration. It makes more sense in a case of async functions to be sure that the decorator works fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unittest.IsolatedAsyncioTestCase is available for python 3.8+, so this module is needed to support async version of unittest.TestCase.
Pliner
commented
Feb 8, 2022
Only tests to check expected behaviour were added. I hope to finalise the PR after a merge of #766.
Can I help move this forward in any way? I've implemented the code to handle async and pushed it here:
camlee@beae31a
It passes all of your unit tests.
kakkoyun
commented
Jul 11, 2024
Hey @Pliner, what's the latest state of this PR?
Fix #535