File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1486,7 +1486,7 @@ def test_update_namespace_properties_invalid_namespace(rest_mock: Mocker) -> Non
14861486 assert "Empty namespace identifier" in str (e .value )
14871487
14881488
1489- def test_request_session_with_ssl_ca_bundle () -> None :
1489+ def test_request_session_with_ssl_ca_bundle (monkeypatch ) -> None :
14901490 # Given
14911491 catalog_properties = {
14921492 "uri" : TEST_URI ,
@@ -1496,10 +1496,8 @@ def test_request_session_with_ssl_ca_bundle() -> None:
14961496 },
14971497 }
14981498 with pytest .raises (OSError ) as e :
1499- if "REQUESTS_CA_BUNDLE" in os .environ :
1500- os .environ .pop ("REQUESTS_CA_BUNDLE" )
1501- if "CURL_CA_BUNDLE" in os .environ :
1502- os .environ .pop ("CURL_CA_BUNDLE" )
1499+ monkeypatch .delenv ("REQUESTS_CA_BUNDLE" , raising = False )
1500+ monkeypatch .delenv ("CURL_CA_BUNDLE" , raising = False )
15031501 # Missing namespace
15041502 RestCatalog ("rest" , ** catalog_properties ) # type: ignore
15051503 assert "Could not find a suitable TLS CA certificate bundle, invalid path: path_to_ca_bundle" in str (e .value )
You can’t perform that action at this time.
0 commit comments