File tree Expand file tree Collapse file tree 5 files changed +12
-12
lines changed
Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 11from amadeus .client .decorator import Decorator
2- from .analytics ._air_traffics import AirTraffics
2+ from .analytics ._air_traffic import AirTraffic
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_traffics = AirTraffics (client )
9+ self .air_traffic = AirTraffic (client )
1010 self .fare_searches = FareSearches (client )
Original file line number Diff line number Diff line change 1- from ._air_traffics import AirTraffics
1+ from ._air_traffic import AirTraffic
22from ._fare_searches import FareSearches
33
4- __all__ = ['AirTraffics ' , 'FareSearches' ]
4+ __all__ = ['AirTraffic ' , 'FareSearches' ]
Original file line number Diff line number Diff line change 11from amadeus .client .decorator import Decorator
22
33
4- class AirTraffics (Decorator , object ):
4+ class AirTraffic (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_traffics .get(
11+ amadeus.travel.analytics.air_traffic .get(
1212 origin='LHR',
1313 period='2011-01'
1414 )
@@ -22,4 +22,4 @@ def get(self, **params):
2222 :raises amadeus.ResponseError: if the request could not be completed
2323 '''
2424 return self .client .get (
25- '/v1/travel/analytics/air-traffics ' , ** params )
25+ '/v1/travel/analytics/air-traffic ' , ** params )
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ Shopping/Hotels
6262Travel/Analytics
6363================
6464
65- .. autoclass :: amadeus.travel.analytics.AirTraffics
65+ .. autoclass :: amadeus.travel.analytics.AirTraffic
6666 :members: get
6767
6868.. autoclass :: amadeus.travel.analytics.FareSearches
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_traffics ).not_to (be_none )
26+ expect (client .travel .analytics .air_traffic ).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_traffics .get ).not_to (be_none )
46+ expect (client .travel .analytics .air_traffic .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_traffics .get' ):
86- self .client .travel .analytics .air_traffics .get (a = 'b' )
85+ with it ('.travel.analytics.air_traffic .get' ):
86+ self .client .travel .analytics .air_traffic .get (a = 'b' )
8787 expect (self .client .get ).to (have_been_called_with (
8888 '/v1/travel/analytics/air-traffics' , a = 'b'
8989 ))
You can’t perform that action at this time.
0 commit comments