Unverified Commit 3b6d52ba authored by Aaron Hill's avatar Aaron Hill
Browse files

Reduce precision of lat/long coords used in testing

Python 2 truncates earlier than Python 3 when converting floats to a
string, which was causing problems with the cassette recording.
parent d02d760c
This diff is collapsed.
...@@ -407,7 +407,7 @@ class TweepyAPITests(TweepyTestCase): ...@@ -407,7 +407,7 @@ class TweepyAPITests(TweepyTestCase):
# Test various API functions using Austin, TX, USA # Test various API functions using Austin, TX, USA
self.assertEqual(self.api.geo_id(id='1ffd3558f2e98349').full_name, 'Dogpatch, San Francisco') self.assertEqual(self.api.geo_id(id='1ffd3558f2e98349').full_name, 'Dogpatch, San Francisco')
self.assertTrue(place_name_in_list('Austin, TX', self.assertTrue(place_name_in_list('Austin, TX',
self.api.reverse_geocode(lat=30.267370168467806, long= -97.74261474609375))) # Austin, TX, USA self.api.reverse_geocode(lat=30.2673701685, long= -97.7426147461))) # Austin, TX, USA
@tape.use_cassette('testsupportedlanguages.json') @tape.use_cassette('testsupportedlanguages.json')
def testsupportedlanguages(self): def testsupportedlanguages(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment