-
Notifications
You must be signed in to change notification settings - Fork 96
Stop returning requests objects #329
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
- Remove some impossible to test methods - Remove the constant usage of `.json()` to get values - Remove the constant need to check if "success" is True
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #329 +/- ##
==========================================
+ Coverage 97.74% 98.95% +1.21%
==========================================
Files 45 43 -2
Lines 2082 1912 -170
Branches 113 108 -5
==========================================
- Hits 2035 1892 -143
+ Misses 35 11 -24
+ Partials 12 9 -3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|



I wanted to make it easier to use the library and made some opinionated changes.
All methods now will trigger an exception (
RocketBadStatusCodeException) if they fail that contains the failure message and status code. No more manual checking in your code. Methods will also return thejsonrepresentation of the response instead of the wholerequestsresponse object. If the object can't be converted to json for any reason, the return value is the raw text.Also on this refactor I decided to sunset some methods that we have not been able to automatically test for some time.
Those methods are:
Because these are breaking changes, the next version bump will be a major one. The previous version will no longer be maintained.