|
43 | 43 | expect(client.shopping.flight_dates).not_to(be_none) |
44 | 44 | expect(client.shopping.flight_destinations).not_to(be_none) |
45 | 45 | expect(client.shopping.flight_offers).not_to(be_none) |
| 46 | + expect(client.shopping.flight_offers_search).not_to(be_none) |
46 | 47 |
|
47 | 48 | expect(client.shopping.hotel_offers).not_to(be_none) |
48 | 49 | expect(client.shopping.hotel_offer).not_to(be_none) |
|
95 | 96 | expect(client.shopping.flight_dates.get).not_to(be_none) |
96 | 97 | expect(client.shopping.flight_destinations.get).not_to(be_none) |
97 | 98 | expect(client.shopping.flight_offers.get).not_to(be_none) |
| 99 | + expect(client.shopping.flight_offers_search.get).not_to(be_none) |
98 | 100 |
|
99 | 101 | expect(client.shopping.hotel_offers.get).not_to(be_none) |
100 | 102 | expect(client.shopping.hotel_offers_by_hotel.get).not_to(be_none) |
|
224 | 226 | '/v1/shopping/flight-offers', a='b' |
225 | 227 | )) |
226 | 228 |
|
| 229 | + with it('.shopping.flight_offers_search.get'): |
| 230 | + self.client.shopping.flight_offers_search.get(a='b') |
| 231 | + expect(self.client.get).to(have_been_called_with( |
| 232 | + '/v2/shopping/flight-offers', a='b' |
| 233 | + )) |
| 234 | + |
227 | 235 | with it('.shopping.hotel_offers.get'): |
228 | 236 | self.client.shopping.hotel_offers.get(cityCode='MAD') |
229 | 237 | expect(self.client.get).to(have_been_called_with( |
|
283 | 291 | expect(self.client.post).to(have_been_called_with( |
284 | 292 | '/v2/travel/trip-parser-jobs', {'foo': 'bar'} |
285 | 293 | )) |
| 294 | + |
| 295 | + with it('.shopping.flight_offers_search.post'): |
| 296 | + self.client.shopping.flight_offers_search.post({'foo': 'bar'}) |
| 297 | + expect(self.client.post).to(have_been_called_with( |
| 298 | + '/v2/shopping/flight-offers', {'foo': 'bar'} |
| 299 | + )) |
0 commit comments