From 74deb0e0bbd01fd9ca6e2c926725c498d4114eae Mon Sep 17 00:00:00 2001
From: Martin Fleischmann <martin@martinfleischmann.net>
Date: Thu, 11 Apr 2024 10:10:23 +0200
Subject: [PATCH] TST: remove callable test
---
tests/test_providers.py | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/tests/test_providers.py b/tests/test_providers.py
index 9d62f46d..14ee34c3 100644
--- a/tests/test_providers.py
+++ b/tests/test_providers.py
@@ -1,8 +1,6 @@
-import xyzservices
import contextily as cx
import pytest
-from numpy.testing import assert_allclose
@pytest.mark.network
@@ -20,18 +18,6 @@ def test_providers():
]:
cx.bounds2img(w, s, e, n, 4, source=provider, ll=True)
-
-def test_providers_callable():
- # only testing the callable functionality to override a keyword, as we
- # cannot test the actual providers that need an API key
- updated_provider = cx.providers.GeoportailFrance.plan(apikey="mykey")
- assert isinstance(updated_provider, xyzservices.TileProvider)
- assert "url" in updated_provider
- assert updated_provider["apikey"] == "mykey"
- # check that original provider dict is not modified
- assert cx.providers.GeoportailFrance.plan["apikey"] == "essentiels"
-
-
def test_invalid_provider():
w, s, e, n = (-106.649, 25.845, -93.507, 36.494)
with pytest.raises(ValueError, match="The 'url' dict should at least contain"):