-
Notifications
You must be signed in to change notification settings - Fork 117
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
Fido 3.0.0 - EventualResult instead of concurrent futures - Fix requests unicode bug #218
Conversation
FidoFutureAdapter
performing the request, whether it is synchronous or actually asynchornous. | ||
|
||
This adapter must be implemented by all bravado clients such as FidoClient | ||
or RequestsClient to wrap the object returned by their 'request' method. |
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.
I don't see request clients using it though
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.
I just uploaded fido==3.0.0 to https://pypi.python.org/pypi/fido |
lg2m |
@@ -137,7 +138,8 @@ def request(self, request_params, operation=None, response_callbacks=None, | |||
requests_future = RequestsFutureAdapter( | |||
self.session, | |||
self.authenticated_request(sanitized_params), | |||
misc_options) | |||
misc_options |
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.
trailing commas ? Or keep the style, that's what you do in tests as well
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.
keeping the style - amended
lg2m, just a formating nitpick |
8ad9d66
to
3fd8768
Compare
Upgrade bravado to use fido 3.0.0
This change makes bravado capable of handling EventualResult objects which are now returned by Fido instead of a concurrent.futures.
I acted on our FutureAdaptor layer of abstraction by creating FidoFutureAdapter and making it and RequestFutureAdapter 'implement' FutureAdapter.
Requests bug
I also introduced a minor little workaround caused by a bug in 'requests' version < 2.8.1 which is documented in their changelog at https://pypi.python.org/pypi/requests
Tests
Testing might be broken on github until fido gets updated to 3.0.0 in https://pypi.python.org/simple/fido/
I manually tested with fido 3.0.0 and our internal acceptance suite though and it was all green.