File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
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
1486
1486
assert "Empty namespace identifier" in str (e .value )
1487
1487
1488
1488
1489
- def test_request_session_with_ssl_ca_bundle () -> None :
1489
+ def test_request_session_with_ssl_ca_bundle (monkeypatch : pytest . MonkeyPatch ) -> None :
1490
1490
# Given
1491
1491
catalog_properties = {
1492
1492
"uri" : TEST_URI ,
@@ -1496,6 +1496,8 @@ def test_request_session_with_ssl_ca_bundle() -> None:
1496
1496
},
1497
1497
}
1498
1498
with pytest .raises (OSError ) as e :
1499
+ monkeypatch .delenv ("REQUESTS_CA_BUNDLE" , raising = False )
1500
+ monkeypatch .delenv ("CURL_CA_BUNDLE" , raising = False )
1499
1501
# Missing namespace
1500
1502
RestCatalog ("rest" , ** catalog_properties ) # type: ignore
1501
1503
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