fix(aiohttp): Record error responses when raise_for_status is used#925
Conversation
JForsythe99
left a comment
There was a problem hiding this comment.
Was in the process of writing a fix for this issue myself but just saw that you've already submitted this PR. Looks good to me - I've made a minor refactoring suggestion on your aiohttp stubs code but am happy with your change :)
ea80ee9 to
a3b94d8
Compare
a3b94d8 to
2312d4b
Compare
|
I've been using this branch for a year now and I haven't found any issues with it yet, so I hope someone else can benefit from these changes after merging. |
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #925 +/- ##
==========================================
- Coverage 92.71% 92.44% -0.28%
==========================================
Files 27 27
Lines 1950 1999 +49
Branches 251 258 +7
==========================================
+ Hits 1808 1848 +40
- Misses 93 99 +6
- Partials 49 52 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
JForsythe99
left a comment
There was a problem hiding this comment.
Looks good, will probably start using this myself
|
Hey @kevin1024 sorry for the tag, I have merge rights but this would be my first PR and it feels weird to just merge it without asking 😬. |
|
Merge at will. But we will need to remember to do a major version bump since this is backwards incompatible |
|
In that case, do you think it could be a good idea for me to solve a couple more issues that are backwards incompatible? that way maybe we can then release them all together in a single major version bump. I went through the opened PRs and issues and grabbed some, if you have something that I could help with let me know, in the meantime I'll try to continue with some other aiohttp ones. |
|
Sure, we can bundle some together. Thanks for helping. If there are any “greatest hits” tickets with a zillion comments or thumbs up those would be good ones. |
Fixes #635
Could be a breaking change for those that are using vcrpy with aiohttp and are expecting the library to not record error responses.