Fixed Bing tests according to newest Bing geo results
@@ -72,7 +72,7 @@ def test_bing_batch():
mocker.post(url_submission, text=str(submission_result.read(), 'utf8'))
mocker.get(url_check, text=str(confirmation_result.read(), 'utf8'))
mocker.get(url_result, text=str(batch_result.read(), 'utf8'))
- g = geocoder.bing(locations_forward, method='batch')
+ g = geocoder.bing(locations_forward, key='test', method='batch')
assert g.ok
assert len(g) == 2
@@ -98,12 +98,12 @@ def test_bing_batch_reverse():
def test_multi_results():
g = geocoder.bing(location, maxRows=3)
- assert len(g) == 3
+
+ assert len(g) == 2
assert g.city == city
expected_results = [
[45.4217796325684, -75.6911926269531],
- [45.2931327819824, -75.7756805419922],
- [36.9871711730957, -94.7606735229492],
+ [45.2931327819824, -75.7756805419922]
]
assert [result.latlng for result in g] == expected_results
