|
67 | 67 | expect(client.travel.from_file).not_to(be_none) |
68 | 68 | expect(client.travel.from_base64).not_to(be_none) |
69 | 69 |
|
| 70 | + expect(client.booking.flight_orders).not_to(be_none) |
| 71 | + expect(client.booking.flight_order).not_to(be_none) |
| 72 | + |
70 | 73 | with it('should define all expected .get methods'): |
71 | 74 | client = self.client |
72 | 75 | expect(client.reference_data.urls.checkin_links.get).not_to(be_none) |
|
112 | 115 | expect(client.travel.trip_parser_jobs.status('123').get).not_to(be_none) |
113 | 116 | expect(client.travel.trip_parser_jobs.result('123').get).not_to(be_none) |
114 | 117 |
|
| 118 | + expect(client.booking.flight_order('123').get).not_to(be_none) |
| 119 | + |
115 | 120 | with it('should define all expected .post methods'): |
116 | 121 | client = self.client |
117 | 122 | expect(client.travel.trip_parser_jobs.post).not_to(be_none) |
|
306 | 311 | {'data': {'type': 'flight-offers-pricing', |
307 | 312 | 'flightOffers': [{'foo': 'bar'}]}} |
308 | 313 | )) |
| 314 | + |
| 315 | + with it('.shopping.booking.flight_orders.post'): |
| 316 | + self.client.booking.flight_orders.post({'foo': 'bar'}, {'bar': 'foo'}) |
| 317 | + expect(self.client.post).to(have_been_called_with( |
| 318 | + '/v1/booking/flight-orders', |
| 319 | + {'data': {'type': 'flight-order', |
| 320 | + 'flightOffers': [{'foo': 'bar'}], |
| 321 | + 'travelers': [{'bar': 'foo'}] |
| 322 | + }} |
| 323 | + )) |
| 324 | + |
| 325 | + with it('.booking.flight_order().get'): |
| 326 | + self.client.booking.flight_order('123').get(a='b') |
| 327 | + expect(self.client.get).to(have_been_called_with( |
| 328 | + '/v1/booking/flight-orders/123', a='b' |
| 329 | + )) |
0 commit comments