Skip to content

Commit 00783dc

Browse files
authored
Merge pull request #71 from amadeus4dev/update-hotel-test
Update hotel test
2 parents 36e026c + b32df0b commit 00783dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/hotel_search/hotel_search.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
hotels_by_city = amadeus.shopping.hotel_offers.get(cityCode='LON')
88
# print(hotels_by_city.data)
99
# Get list of offers for a specific hotel
10-
hotel_offers = amadeus.shopping.hotel_offers_by_hotel.get(hotelId = 'HSMADAMI')
10+
hotel_offers = amadeus.shopping.hotel_offers_by_hotel.get(hotelId = 'HSMADAMI', checkInDate='2020-10-10', checkOutDate='2020-10-12')
1111
# print(hotel_offers.data)
1212
# Confirm the availability of a specific offer
1313
offer = hotel_offers.data['offers'][0]['id']
@@ -17,5 +17,5 @@
1717
payments = { 'id': 1, 'method': 'creditCard', 'card': { 'vendorCode': 'VI', 'cardNumber': '4151289722471370', 'expiryDate': '2021-08' } }
1818
hotel_booking = amadeus.booking.hotel_bookings.post(offer, guests, payments)
1919
# print(hotel_booking.data)
20-
except ResponseError:
20+
except (TypeError, ResponseError):
2121
pass

0 commit comments

Comments
 (0)