-
Notifications
You must be signed in to change notification settings - Fork 86
Convert all tests to pytest #99
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
Comments
Hello! I can help with this issue, I will start working on it. |
Hi, @AndresSan6. That would be awesome, thanks! We would love any help you want to contribute. One thing I would ask, since we haven't gotten around to setting up pre-commit hooks yet: please make sure you run |
I already made the pull request for each test, in the following list I share their PR number. test/integration/test_i_aws_encrytion_sdk_client.py #114 Please let me know if these changes help you. |
Awesome, thanks! I'll start working through those today and Monday. |
@AndresSan6 Looks like a lot of these are choking on linting checks. To check that locally, you can just run: So far they mostly just need now-unused imports removed. |
These look great; exactly what I was looking for! There are two issues that affect several of these (I noted in each PR where each affects which):
|
Got i! I will start solving the addressed issues. I will let you know when I committed my changes. |
Looks like a couple had lingering minor linting issues. Just a reminder that |
No more Thanks for the help, @AndresSan6 |
A lot of the original test suite was written in
unittest
. Let's get all of that moved over topytest
.Initially, this should be converting
unittest.TestCase
classes topytest
classes similar to what was done in #98. We can pull those methods out to stand-alone functions later if we decide we want to, but leaving them in classes will make the diffs most simpler.I would also like to opportunistically remove some of the over-zealous mocking present in these classes where we can.
Test modules to convert:
Due to the changes that will need to happen, anyone looking at this please follow the following guidelines:
unittest
classes to classes usingpytest
first. We can change to functions later if desired, but converting the classes directly will minimize the changes in each test file.tox -re autoformat
before committing to apply our formatting rules.The text was updated successfully, but these errors were encountered: