This repository was archived by the owner on Mar 6, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -448,4 +448,3 @@ def check_use_client_cert():
448448 ) as e :
449449 _LOGGER .debug ("error decoding certificate: %s" , e )
450450 return False
451-
Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ def callback():
111111
112112 return callback
113113
114+
114115def should_use_client_cert ():
115116 """Returns boolean for whether the client certificate should be used for mTLS.
116117
@@ -128,4 +129,3 @@ def should_use_client_cert():
128129 bool: indicating whether the client certificate should be used for mTLS.
129130 """
130131 return _mtls_helper .check_use_client_cert ()
131-
Original file line number Diff line number Diff line change @@ -95,13 +95,11 @@ def test_default_client_encrypted_cert_source(
9595 with pytest .raises (exceptions .MutualTLSChannelError ):
9696 callback ()
9797
98- @mock .patch (
99- "google.auth.transport._mtls_helper.check_use_client_cert" , autospec = True
100- )
98+
99+ @mock .patch ("google.auth.transport._mtls_helper.check_use_client_cert" , autospec = True )
101100def test_should_use_client_cert (check_use_client_cert ):
102101 check_use_client_cert .return_value = mock .Mock ()
103102 assert mtls .should_use_client_cert ()
104103
105104 check_use_client_cert .return_value = False
106105 assert not mtls .should_use_client_cert ()
107-
You can’t perform that action at this time.
0 commit comments