-
Notifications
You must be signed in to change notification settings - Fork 83
Sprutner/add seatmap explorer #60
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
Sprutner/add seatmap explorer #60
Conversation
This adds functionality to the amadeus python SDK to allow use of the "SeatMap Display" API endpoint within the python SDK.
This adds functionality to the amadeus python SDK to allow use of the "SeatMap Display" API endpoint within the python SDK. Adds documentation and fixed URL
tsolakoua
left a comment
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.
Thank you so much for your PR @sprutner ! We reviewed your commits and tests are missing as according to our contributor's guide every contributor has to make sure new tests are included when a functionality is implemented.
|
Sure, I can do that. One thing I am struggling with is I need a good example Looking at previous commits, it looks like you have posted |
In order to take a valid
Yes, you can use the same mock data. Hope that helps! Let us know if you have further questions or doubts! |
adds basic tests for both the get and post functions for seatmap explorer
made the documentation more specific, and removed the invalid offerid, as the get method only supports order id from flights that have already been ordered.
|
Thank you for updating the tests and docs @sprutner! We reviewed your commits and there is a small part missing from the tests: Thanks again and let us know if you have any questions :) |
added required tests on paths and .get methods
This adds functionality to the amadeus python SDK to allow use of the "SeatMap Display" API endpoint within the python SDK. Adds documentation and fixed URL
adds basic tests for both the get and post functions for seatmap explorer
|
Seem to be getting a fail with the travis build on py3.6.3 |
We'll check it out ASAP. |
|
We did an update on master and rebased your branch. The problem was the environmental variables set in Travis for our amadeus/python repo seem not to be available when a PR is submitted from a separate forked repository like your case. It should be fine now with the changes we introduced. Just before you merge your PR please check out the duplications we identified in the last commits below:
Also we have a question; why do you use the double ** asterisk when passing the parameters in the get method, for example Thanks! |
|
Hey @tsolakoua I will go take a look at making those deduplications. Regarding the double **, I believe this was from an example I copied. This was my first time trying to set an arg that contains a hyphen within the arg name, so |
this removes a duplicate readme entry. This also renames the readme entry to be flight seatmaps instead of just seatmaps to fit more with the style of the readme the testcase for seatmaps.get was changed to pass in the args in the style that is also used in the readme. the reason the args are passed in like this is because there is a hyphen present in the arg name. this also removes a duplicate post test.
|
Okay so it looks like the double ** is required in this case. I also updated the tests to use the ** way of passing in the args, and got rid of my duplicate tests and the readme entries. I noticed you also have a couple duplicates for Flight Offer Search here as well in the readme I will leave that change out of this PR but you could remove it in a future PR. Thank you for the feedback! Please re-review and let me know if we are good to go! |
|
Sounds good. Looks like I don't have permissions to merge it so go ahead whenever you are ready for it. |
|
@sprutner Merged! Thank you so much for your contribution! 🎉 |
This adds functionality to the amadeus python SDK to allow
use of the "SeatMap Display" API endpoint within the
python SDK.
Changes for this pull request
Add seatmap explorer functionality