Skip to content

Commit 1d0d81e

Browse files
committed
test hotel subtype
1 parent e5a79a3 commit 1d0d81e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

amadeus/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from .version import version
33

44
from .client.location import Location
5+
from .client.hotel import Hotel
56
from .client.direction import Direction
67
from .client.request import Request
78
from .client.response import Response
@@ -13,5 +14,5 @@
1314
'Client', 'Location', 'Direction', 'version', 'ResponseError',
1415
'ParserError', 'ServerError', 'AuthenticationError',
1516
'NotFoundError', 'ClientError', 'Request', 'Response',
16-
'NetworkError'
17+
'NetworkError', 'Hotel'
1718
]

specs/test_client.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from amadeus import Client, Location
1+
from amadeus import Client, Location, Hotel
22

33

44
def test_client_exists():
@@ -8,3 +8,9 @@ def test_client_exists():
88
def test_client_has_helper_locations():
99
assert Location is not None
1010
assert Location.ANY == 'AIRPORT,CITY'
11+
12+
13+
def test_client_has_helper_hotels():
14+
assert Hotel is not None
15+
assert Hotel.HOTEL_GDS == 'HOTEL_GDS'
16+
assert Hotel.HOTEL_LEISURE == 'HOTEL_LEISURE'

0 commit comments

Comments
 (0)