Skip to content

Commit a80b422

Browse files
committed
Harden insecure precedence test with nonexistent CA cert path
1 parent cdaef2e commit a80b422

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

test/test_transport_options.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55

66
class TransportOptionsTest(unittest.TestCase):
7-
87
def test_defaults_returns_empty(self) -> None:
98
self.assertEqual({}, TransportOptions.defaults().to_session_kwargs())
109

@@ -24,7 +23,7 @@ def test_proxy_url_sets_proxies(self) -> None:
2423
)
2524

2625
def test_insecure_takes_precedence_over_ca_cert(self) -> None:
27-
opts = TransportOptions(insecure=True, ca_cert_path="/path/to/ca.pem")
26+
opts = TransportOptions(insecure=True, ca_cert_path="/nonexistent/ca.pem")
2827
self.assertEqual({"verify": False}, opts.to_session_kwargs())
2928

3029
def test_immutability(self) -> None:

0 commit comments

Comments
 (0)