Skip to content

Commit 5325f0b

Browse files
author
Anthony Roux
committed
fix typo in the endpoint name and import for python 2.7
1 parent 92a9df1 commit 5325f0b

File tree

7 files changed

+18
-16
lines changed

7 files changed

+18
-16
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,9 @@ List of supported endpoints
247247
amadeus.shopping.hotel_offer('D5BEE9D0D08B6678C2F5FAD910DC110BCDA187D21D4FCE68ED423426D0A246BB').get()
248248
# Point of Interest
249249
# What are the popular places in Barcelona (based a geo location and a radius)
250-
amadeus.reference_data.locations.point_of_interests.get(latitude=41.397158, longitude=2.160873)
250+
amadeus.reference_data.locations.points_of_interest.get(latitude=41.397158, longitude=2.160873)
251251
# What are the popular places in Barcelona? (based on a square)
252-
amadeus.reference_data.locations.point_of_interests.by_square.get(north=41.397158, west=2.160873, south=41.394582, east=2.177181)
252+
amadeus.reference_data.locations.points_of_interest.by_square.get(north=41.397158, west=2.160873, south=41.394582, east=2.177181)
253253
254254
255255
Development & Contributing

amadeus/reference_data/_locations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
from amadeus.client.decorator import Decorator
22
from amadeus.reference_data.locations._airports import Airports
3-
from amadeus.reference_data.locations._point_of_interests import PointOfInterests
3+
from amadeus.reference_data.locations._points_of_interest import PointOfInterests
44

55

66
class Locations(Decorator, object):
77
def __init__(self, client):
88
Decorator.__init__(self, client)
99
self.airports = Airports(client)
10-
self.point_of_interests = PointOfInterests(client)
10+
self.points_of_interest = PointOfInterests(client)
1111

1212
def get(self, **params):
1313
'''
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from ._airports import Airports
2-
from ._point_of_interests import PointOfInterests
2+
from ._points_of_interest import PointOfInterests
33
__all__ = ['Airports', 'PointOfInterests']

amadeus/reference_data/locations/_point_of_interests.py renamed to amadeus/reference_data/locations/_points_of_interest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from amadeus.client.decorator import Decorator
2-
from amadeus.reference_data.locations.point_of_interests._by_square \
2+
from amadeus.reference_data.locations.points_of_interest._by_square \
33
import BySquare
44

55

@@ -15,7 +15,7 @@ def get(self, **params):
1515
.. code-block:: python
1616
1717
18-
client.reference_data.locations.point_of_interests.get(
18+
client.reference_data.locations.points_of_interest.get(
1919
longitude=2.160873,
2020
latitude=41.397158
2121
)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from ._by_square import BySquare
2+
__all__ = ['BySquare']

amadeus/reference_data/locations/point_of_interests/_by_square.py renamed to amadeus/reference_data/locations/points_of_interest/_by_square.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def get(self, **params):
1010
.. code-block:: python
1111
1212
13-
client.reference_data.locations.point_of_interests.by_square.get(
13+
client.reference_data.locations.points_of_interest.by_square.get(
1414
north=41.397158,
1515
west=2.160873,
1616
south=41.394582,

specs/namespaces/namespaces_spec.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
expect(client.reference_data.location).not_to(be_none)
2121
expect(client.reference_data.locations).not_to(be_none)
2222
expect(client.reference_data.locations.airports).not_to(be_none)
23-
expect(client.reference_data.locations.point_of_interests).not_to(be_none)
23+
expect(client.reference_data.locations.points_of_interest).not_to(be_none)
2424
expect(
25-
client.reference_data.locations.point_of_interests.by_square).not_to(
25+
client.reference_data.locations.points_of_interest.by_square).not_to(
2626
be_none)
2727

2828
expect(client.travel).not_to(be_none)
@@ -51,10 +51,10 @@
5151
expect(client.reference_data.locations.get).not_to(be_none)
5252
expect(client.reference_data.locations.airports.get).not_to(be_none)
5353
expect(
54-
client.reference_data.locations.point_of_interests.get).not_to(
54+
client.reference_data.locations.points_of_interest.get).not_to(
5555
be_none)
5656
expect(
57-
client.reference_data.locations.point_of_interests.by_square.get
57+
client.reference_data.locations.points_of_interest.by_square.get
5858
).not_to(be_none)
5959

6060
expect(client.travel.analytics.air_traffic.traveled.get).not_to(be_none)
@@ -110,14 +110,14 @@
110110
'/v1/reference-data/locations/airports', a='b'
111111
))
112112

113-
with it('.reference_data.locations.point_of_interests.get'):
114-
self.client.reference_data.locations.point_of_interests.get(a='b')
113+
with it('.reference_data.locations.points_of_interest.get'):
114+
self.client.reference_data.locations.points_of_interest.get(a='b')
115115
expect(self.client.get).to(have_been_called_with(
116116
'/v1/reference-data/locations/pois', a='b'
117117
))
118118

119-
with it('.reference_data.locations.point_of_interests.by_square.get'):
120-
self.client.reference_data.locations.point_of_interests.by_square.get(
119+
with it('.reference_data.locations.points_of_interest.by_square.get'):
120+
self.client.reference_data.locations.points_of_interest.by_square.get(
121121
a='b')
122122
expect(self.client.get).to(have_been_called_with(
123123
'/v1/reference-data/locations/pois/by-square', a='b'

0 commit comments

Comments
 (0)