-
Notifications
You must be signed in to change notification settings - Fork 21
Rewrite async tests without 3rd party library #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@steve148 Do you have any idea why the linter fails on Github Actions when it passes locally? 🤷♂ |
|
@DaleSeo sorry for the late reply here. The CI checks failing is my fault, the pre-commit check should include the pip install flake8-isort
flake8 |
|
Side note, for the next PR can you make sure it's coming from a fork of the repository? Right now you have write access to the repo and therefore you can create branches directly within the repo, but if we're expecting other people in the long run to fork for contributing we should also follow that standard. Let me know if you need any help for getting the fork setup for the next PR. |
|
#22 should fix the issue you're seeing here where local linter checks don't match the remote checks. |
👍 Got it! I'll work on a fork for the future PRs. |
|
I'll rebase it onto master once PR #22 gets merged. |
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.
Good stuff @DaleSeo! Once you've rebased we can merge the changes in.
|
@steve148 I've rebased and sorted the imports in I didn't know what to do so I just tried to commit with the |


What kind of change does this PR introduce?
I recently learned that it's been much easier to write unit tests against asynchronous code in Python 3.8.
This PR rewrites the tests for the
execute_asyncmethod usingIsolatedAsyncioTestCaseandAsyncMockof the standardunittestmodule. This also results in theasynctestdependency removed from the project.What is the current behavior?
No changes in behavior
What is the new behavior?
No changes in behavior
Does this PR introduce a breaking change?
No
Other information