Skip to content

Commit 52c2f83

Browse files
committed
We always need a key
1 parent a3ad243 commit 52c2f83

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/test_api.py

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

55
from streetview import get_panorama_meta, get_streetview
66

7-
GOOGLE_MAPS_API_KEY = os.environ["GOOGLE_MAPS_API_KEY"]
7+
GOOGLE_MAPS_API_KEY = os.environ.get("GOOGLE_MAPS_API_KEY", "NOKEY")
88

99

1010
@pytest.mark.vcr(filter_query_parameters=["key"])

tests/test_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
)
1111
from streetview.search import Panorama
1212

13-
GOOGLE_MAPS_API_KEY = os.environ["GOOGLE_MAPS_API_KEY"]
13+
GOOGLE_MAPS_API_KEY = os.environ.get("GOOGLE_MAPS_API_KEY", "NOKEY")
1414

1515

1616
SYDNEY = {

0 commit comments

Comments
 (0)