File tree Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 11from amadeus .client .decorator import Decorator
2- from .analytics ._air_traffic import AirTraffic
2+ from .analytics .air_traffic . _traveled import Traveled
33from .analytics ._fare_searches import FareSearches
44
55
66class Analytics (Decorator , object ):
77 def __init__ (self , client ):
88 Decorator .__init__ (self , client )
9- self .air_traffic = AirTraffic (client )
9+ self .traveled = Traveled (client )
1010 self .fare_searches = FareSearches (client )
Original file line number Diff line number Diff line change 1- from ._air_traffic import AirTraffic
1+ from .air_traffic . _traveled import Traveled
22from ._fare_searches import FareSearches
33
4- __all__ = ['AirTraffic ' , 'FareSearches' ]
4+ __all__ = ['Traveled ' , 'FareSearches' ]
Original file line number Diff line number Diff line change 11from amadeus .client .decorator import Decorator
22
33
4- class AirTraffic (Decorator , object ):
4+ class Traveled (Decorator , object ):
55 def get (self , ** params ):
66 '''
77 Returns a list of air traffic reports.
88
99 .. code-block:: python
1010
11- amadeus.travel.analytics.air_traffic.get(
11+ amadeus.travel.analytics.air_traffic.traveled. get(
1212 origin='LHR',
1313 period='2011-01'
1414 )
1515
1616 :param cityCode: IATA code of the origin city, for
1717 example ``"BOS"`` for Boston.
18- :param query: period when consumers are travelling
18+ :param query: period when consumers are traveling
1919 in ``YYYY-MM`` format
2020
2121 :rtype: amadeus.Response
2222 :raises amadeus.ResponseError: if the request could not be completed
2323 '''
2424 return self .client .get (
25- '/v1/travel/analytics/air-traffic' , ** params )
25+ '/v1/travel/analytics/air-traffic/traveled ' , ** params )
Original file line number Diff line number Diff line change 2323
2424 expect (client .travel ).not_to (be_none )
2525 expect (client .travel .analytics ).not_to (be_none )
26- expect (client .travel .analytics .air_traffic ).not_to (be_none )
26+ expect (client .travel .analytics .air_traffic . traveled ).not_to (be_none )
2727 expect (client .travel .analytics .fare_searches ).not_to (be_none )
2828
2929 expect (client .shopping ).not_to (be_none )
4343 expect (client .reference_data .locations .get ).not_to (be_none )
4444 expect (client .reference_data .locations .airports .get ).not_to (be_none )
4545
46- expect (client .travel .analytics .air_traffic .get ).not_to (be_none )
46+ expect (client .travel .analytics .air_traffic .traveled . get ).not_to (be_none )
4747 expect (client .travel .analytics .fare_searches .get ).not_to (be_none )
4848
4949 expect (client .shopping .flight_dates .get ).not_to (be_none )
8282 '/v1/reference-data/locations/airports' , a = 'b'
8383 ))
8484
85- with it ('.travel.analytics.air_traffic.get' ):
86- self .client .travel .analytics .air_traffic .get (a = 'b' )
85+ with it ('.travel.analytics.air_traffic.traveled. get' ):
86+ self .client .travel .analytics .air_traffic .traveld . get (a = 'b' )
8787 expect (self .client .get ).to (have_been_called_with (
88- '/v1/travel/analytics/air-traffic' , a = 'b'
88+ '/v1/travel/analytics/air-traffic/traveled ' , a = 'b'
8989 ))
9090
9191 with it ('.travel.analytics.fare_searches.get' ):
You can’t perform that action at this time.
0 commit comments