We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 151a1f4 commit 2070566Copy full SHA for 2070566
tests/test_client.py
@@ -110,6 +110,17 @@ def test_environment_variable(self):
110
else:
111
del os.environ["STAC_URL"]
112
113
+ def test_no_url(self):
114
+ old_stac_url = os.environ.get("STAC_URL")
115
+ if old_stac_url:
116
+ del os.environ["STAC_URL"]
117
+ try:
118
+ with pytest.raises(TypeError):
119
+ Client.open()
120
+ finally:
121
122
+ os.environ["STAC_URL"] = old_stac_url
123
+
124
125
class TestAPISearch:
126
@pytest.fixture(scope='function')
0 commit comments