Skip to content

Commit c27695d

Browse files
committed
fix: mock patch missing attribute in old google-auth versions
1 parent 6a44282 commit c27695d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/google-api-core/tests/unit/gapic/test_client_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def test_get_default_mtls_endpoint():
4949
assert client_helpers.get_default_mtls_endpoint(None) is None
5050

5151

52-
@mock.patch("google.auth.transport.mtls.should_use_client_cert", autospec=True)
52+
@mock.patch("google.auth.transport.mtls.should_use_client_cert", autospec=True, create=True)
5353
def test_use_client_cert_effective_with_google_auth(mock_method):
5454
# Test when google-auth supports the method
5555
mock_method.return_value = True

0 commit comments

Comments
 (0)