Skip to content

Commit 5b952d7

Browse files
authored
fix: fixes broken support for python 3.5 (#453)
* fix tests * updates after review
1 parent 8fde950 commit 5b952d7

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ jobs:
3232
python-version: ["3.7", "3.8", "3.9", "3.10"]
3333
steps:
3434
- name: Checkout repository
35-
uses: actions/checkout@v2
35+
uses: actions/checkout@v3
3636

3737
- name: Setup Python
38-
uses: "actions/setup-python@v1"
38+
uses: "actions/setup-python@v3"
3939
with:
4040
python-version: "${{ matrix.python-version }}"
4141

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,3 @@ googlemaps.egg-info
3535
.vscode/
3636
.idea/
3737
index.py
38-
test.py

googlemaps/addressvalidation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2014 Google Inc. All rights reserved.
2+
# Copyright 2022 Google Inc. All rights reserved.
33
#
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
@@ -77,4 +77,5 @@ def addressvalidation(client, addressLines, regionCode=None , locality=None, ena
7777
return client._request("/v1:validateAddress", {}, # No GET params
7878
base_url=_ADDRESSVALIDATION_BASE_URL,
7979
extract_body=_addressvalidation_extract,
80-
post_json=params)
80+
post_json=params)
81+

googlemaps/client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ def __init__(self, key=None, client_id=None, client_secret=None,
180180
"verify": True, # NOTE(cbro): verify SSL certs.
181181
})
182182

183-
self.queries_quota : int
184183
self.queries_per_second = queries_per_second
185184
self.queries_per_minute = queries_per_minute
186185
try:

tests/test_addressvalidation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
class AddressValidationTest(TestCase):
2828
def setUp(self):
29-
self.key = "AIzaasdf"
29+
self.key = "AIzaSyD_sJl0qMA65CYHMBokVfMNA7AKyt5ERYs"
3030
self.client = googlemaps.Client(self.key)
3131

3232
@responses.activate

0 commit comments

Comments
 (0)