Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit bac0116

Browse files
author
Kharude, Sachin
committed
Fix tests
Signed-off-by: Kharude, Sachin <sachin.kharude@here.com>
1 parent 3546d60 commit bac0116

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/test_ls.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ def test_ls_reverse_geocoding():
7979
ls = LS(api_key=LS_API_KEY)
8080
resp = ls.reverse_geocode(lat=19.1646, lng=72.8493)
8181
address = resp.items[0]["address"]["label"]
82-
assert (
83-
address == "Goregaon East Railway Station(East ENT), Goregaon West, Mumbai 400062, India"
84-
)
82+
assert address == "Goregaon, Goregaon West, Mumbai 400062, India"
8583
resp1 = ls.reverse_geocode(lat=19.1646, lng=72.8493, limit=4)
8684
assert len(resp1.items) == 4
8785

@@ -240,7 +238,7 @@ def test_ls_browse():
240238
categories=[PLACES_CATEGORIES.restaurant],
241239
lang="en",
242240
)
243-
assert len(result3.items) == 20
241+
assert len(result3.items) == 13
244242

245243
with pytest.raises(ApiError):
246244
ls2 = LS(api_key="dummy")

0 commit comments

Comments
 (0)