-
-
Notifications
You must be signed in to change notification settings - Fork 183
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
AioStubber that returns AioAWSResponse() #1039
Conversation
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.
need to add entry to test_patches
@thehesiod updated |
Head branch was pushed to by a user without write access
@thehesiod I just realized that the CI tasks expect version to be provided, I did not do it because I thought that will be done after the PR is merged. I just updated the PR to include a version. |
@thehesiod please run it again |
@thehesiod I fixed the formatting and flake8 now doesn't report issues. |
sigh I wonder what will fail this time |
Codecov Report
@@ Coverage Diff @@
## master #1039 +/- ##
==========================================
+ Coverage 86.23% 86.38% +0.14%
==========================================
Files 58 60 +2
Lines 5740 5803 +63
==========================================
+ Hits 4950 5013 +63
Misses 790 790
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
313caae
to
3092a69
Compare
@thehesiod sorry for delay, but I had other things I needed to finish. I added some unit tests now. |
@thehesiod can you run the pipeline again? |
@thehesiod I rebased the PR due to another PR that was merged recently |
whoops, forgot about this pr, thanks |
@thehesiod I see it failed, but it looks like it was during uploading the results to codecov? |
The codecov still makes nos sense, coverage told me the coverage is 100%, looking at codecov I see for example this (line 15): https://github.com/aio-libs/aiobotocore/pull/1039/files#annotation_15037531067 But that line is always executed, so I don't see how it wouldn't be covered. |
you need to add the moto marker to your tests, we only run things marked with moto. what would be better going forward is instead having a marker for tests that require a real AWS account, and then exclude those if you want to attempt that. This has bit us a couple times with new contributors. |
looks like you can do this with |
Head branch was pushed to by a user without write access
@thehesiod I added the marker, I didn't use it, since stubber overlaps with functionality so I felt it was redundant. |
Description of Change
Adding AioStubber to provide async version (responding with AioAWSResponse()) of Stubber.
Hopefully solving issue raised in #939
Checklist for All Submissions
Checklist when updating botocore and/or aiohttp versions