File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,10 @@ def __init__(
146146 self .key = key if key is not None else os .environ .get ('OPENCAGE_API_KEY' )
147147
148148 if self .key is None :
149- raise ValueError ("API key not provided. Either pass a 'key' parameter or set the OPENCAGE_API_KEY environment variable." )
149+ raise ValueError (
150+ "API key not provided. "
151+ "Either pass a 'key' parameter or set the OPENCAGE_API_KEY environment variable."
152+ )
150153
151154 if protocol and protocol not in ('http' , 'https' ):
152155 protocol = 'https'
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ def test_must_be_unicode_string():
3535 assert str (excinfo .value ) == f"Input must be a unicode string, not { latin1_string !r} "
3636 assert excinfo .value .bad_value == latin1_string
3737
38+
3839@responses .activate
3940def test_reject_out_of_bounds_coordinates ():
4041 """Test that reverse geocoding rejects out-of-bounds latitude and longitude values."""
Original file line number Diff line number Diff line change @@ -23,4 +23,3 @@ def test_custom_domain():
2323 """Test that custom domain can be set"""
2424 geocoder = OpenCageGeocode ('abcde' , domain = 'example.com' )
2525 assert geocoder .url == 'https://example.com/geocode/v1/json'
26-
You can’t perform that action at this time.
0 commit comments