Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit 39bff9b

Browse files
fix: update lint fixes
Signed-off-by: Radhika Agrawal <agrawalradhika@google.com>
1 parent fb37ed0 commit 39bff9b

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

google/auth/transport/_mtls_helper.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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-

google/auth/transport/mtls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ def callback():
111111

112112
return callback
113113

114+
114115
def 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-

tests/transport/test_mtls.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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)
101100
def 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-

0 commit comments

Comments
 (0)