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

Commit 984e71c

Browse files
fix: lint fixes and typo fixes
Signed-off-by: Radhika Agrawal <agrawalradhika@google.com>
1 parent dbd40d0 commit 984e71c

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

google/auth/aio/transport/mtls.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import contextlib
2121
import logging
2222
import os
23-
from os import getenv, path
2423
import ssl
2524
import tempfile
2625
from typing import Optional
@@ -30,6 +29,7 @@
3029

3130
_LOGGER = logging.getLogger(__name__)
3231

32+
3333
@contextlib.contextmanager
3434
def _create_temp_file(content: bytes):
3535
"""Creates a temporary file with the given content.
@@ -84,6 +84,7 @@ def make_client_cert_ssl_context(
8484
"Failed to load client certificate and key for mTLS."
8585
) from exc
8686

87+
8788
async def _run_in_executor(func, *args):
8889
"""Run a blocking function in an executor to avoid blocking the event loop.
8990

google/auth/transport/mtls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from google.auth.transport import _mtls_helper
2121

2222

23-
def has_default_client_cert_source(include_context_aware):
23+
def has_default_client_cert_source(include_context_aware=True):
2424
"""Check if default client SSL credentials exists on the device.
2525
2626
Args:

tests/transport/aio/test_sessions_mtls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ async def test_configure_mtls_channel_invalid_format(self, mock_file, mock_exist
9999
@pytest.mark.asyncio
100100
@mock.patch.dict(os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": "true"})
101101
@mock.patch(
102-
"google.auth.aio.transport.mtls.has_default_client_cert_source",
102+
"google.auth.transport.mtls.has_default_client_cert_source",
103103
return_value=True,
104104
)
105105
async def test_configure_mtls_channel_mock_callback(self, mock_has_cert):

0 commit comments

Comments
 (0)