Skip to content

Commit 883da27

Browse files
authored
TST: remove callable test (#240)
1 parent f8c34e0 commit 883da27

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

tests/test_providers.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
import xyzservices
21
import contextily as cx
32

43
import pytest
5-
from numpy.testing import assert_allclose
64

75

86
@pytest.mark.network
@@ -20,18 +18,6 @@ def test_providers():
2018
]:
2119
cx.bounds2img(w, s, e, n, 4, source=provider, ll=True)
2220

23-
24-
def test_providers_callable():
25-
# only testing the callable functionality to override a keyword, as we
26-
# cannot test the actual providers that need an API key
27-
updated_provider = cx.providers.GeoportailFrance.plan(apikey="mykey")
28-
assert isinstance(updated_provider, xyzservices.TileProvider)
29-
assert "url" in updated_provider
30-
assert updated_provider["apikey"] == "mykey"
31-
# check that original provider dict is not modified
32-
assert cx.providers.GeoportailFrance.plan["apikey"] == "essentiels"
33-
34-
3521
def test_invalid_provider():
3622
w, s, e, n = (-106.649, 25.845, -93.507, 36.494)
3723
with pytest.raises(ValueError, match="The 'url' dict should at least contain"):

0 commit comments

Comments
 (0)