Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions googlemaps/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
__version__ = "3.0.2"

from googlemaps.client import Client
import googlemaps.exceptions
from googlemaps import exceptions

# Allow sphinx to pick up these symbols for the documentation.
__all__ = ["Client"]

__all__ = ["Client", "exceptions"]
1 change: 0 additions & 1 deletion googlemaps/distance_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"""Performs requests to the Google Maps Distance Matrix API."""

from googlemaps import convert
from googlemaps.convert import as_list


def distance_matrix(client, origins, destinations,
Expand Down
1 change: 0 additions & 1 deletion googlemaps/places.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

"""Performs requests to the Google Places API."""

from uuid import uuid4 as places_autocomplete_session_token
from googlemaps import convert


Expand Down
5 changes: 3 additions & 2 deletions googlemaps/test/test_places.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@

"""Tests for the places module."""

import uuid

from types import GeneratorType

import responses

import googlemaps
from googlemaps.places import places_autocomplete_session_token
import googlemaps.test as _test


Expand Down Expand Up @@ -169,7 +170,7 @@ def test_autocomplete(self):
body='{"status": "OK", "predictions": []}',
status=200, content_type='application/json')

session_token = places_autocomplete_session_token()
session_token = uuid.uuid4().hex

self.client.places_autocomplete('Google', session_token=session_token, offset=3,
location=self.location,
Expand Down