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

Commit b560507

Browse files
chore: Add mtls flag check
Signed-off-by: Radhika Agrawal <agrawalradhika@google.com>
1 parent 8bb0ea5 commit b560507

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/transport/aio/test_sessions_mtls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ async def test_configure_mtls_channel_disabled(self, mock_exists):
7979
# If the file doesn't exist, it shouldn't error; it just won't use mTLS
8080
assert session._is_mtls is False
8181

82+
@mock.patch.dict(os.environ, {"GOOGLE_API_USE_CLIENT_CERTIFICATE": "true"})
8283
@mock.patch("os.path.exists")
8384
@mock.patch(
8485
"builtins.open", new_callable=mock.mock_open, read_data='{"invalid": "format"}'

0 commit comments

Comments
 (0)