Skip to content

Commit 0d0d96b

Browse files
committed
lint fixes.
1 parent 08bcf25 commit 0d0d96b

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

packages/google-auth/tests/transport/aio/test_sessions_mtls.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ async def test_configure_mtls_channel_custom_request(self):
165165

166166
mock_creds = mock.AsyncMock(spec=credentials.Credentials)
167167
mock_auth_request = mock.AsyncMock(spec=transport.Request)
168-
session = sessions.AsyncAuthorizedSession(mock_creds, auth_request=mock_auth_request)
168+
session = sessions.AsyncAuthorizedSession(
169+
mock_creds, auth_request=mock_auth_request
170+
)
169171

170172
await session.configure_mtls_channel()
171173

packages/google-auth/tests/transport/test_grpc.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,9 @@ def test_get_client_ssl_credentials_success(
468468
certificate_chain=PUBLIC_CERT_BYTES, private_key=PRIVATE_KEY_BYTES
469469
)
470470

471-
@mock.patch("google.auth.transport.mtls.has_default_client_cert_source", autospec=True)
471+
@mock.patch(
472+
"google.auth.transport.mtls.has_default_client_cert_source", autospec=True
473+
)
472474
def test_get_client_ssl_credentials_workload_cert(
473475
self,
474476
mock_has_default_client_cert_source,
@@ -492,7 +494,7 @@ def test_get_client_ssl_credentials_workload_cert(
492494
):
493495
ssl_credentials = google.auth.transport.grpc.SslCredentials()
494496

495-
# If a workload certificate config exists on the device (and use_client_cert is true),
497+
# If a workload certificate config exists on the device (and use_client_cert is true),
496498
# is_mtls must be True and get_client_ssl_credentials should be invoked.
497499
assert ssl_credentials.ssl_credentials is not None
498500
assert ssl_credentials.is_mtls

packages/google-auth/tests/transport/test_urllib3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def test_configure_mtls_channel_non_mtls(
262262
is_mtls = authed_http.configure_mtls_channel()
263263

264264
assert not is_mtls
265-
# If client certificate and key are not found, the transport falls back to
265+
# If client certificate and key are not found, the transport falls back to
266266
# a standard connection. _is_mtls must be False to reflect this fallback state.
267267
assert authed_http._is_mtls is False
268268
mock_get_client_cert_and_key.assert_called_once()

0 commit comments

Comments
 (0)