File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
gapic/templates/tests/unit/gapic/%name_%version/%sub Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1486,8 +1486,8 @@ def test_{{ service.name|snake_case }}_transport_channel_mtls_with_client_cert_s
1486
1486
grpc_create_channel.return_value = mock_grpc_channel
1487
1487
1488
1488
cred = ga_credentials.AnonymousCredentials()
1489
- with pytest.warns(DeprecationWarning, match="client_cert") as record:
1490
- with mock.patch.object(google.auth, 'default') as adc:
1489
+ with pytest.warns(DeprecationWarning) as record: # match="client_cert|mtls ") as record:
1490
+ with mock.patch.object(google.auth, 'default|mtls ') as adc:
1491
1491
adc.return_value = (cred, None)
1492
1492
transport = transport_class(
1493
1493
host="squid.clam.whelk",
@@ -1533,7 +1533,7 @@ def test_{{ service.name|snake_case }}_transport_channel_mtls_with_adc(
1533
1533
grpc_create_channel.return_value = mock_grpc_channel
1534
1534
mock_cred = mock.Mock()
1535
1535
1536
- with pytest.warns(DeprecationWarning, match="mtls") as record:
1536
+ with pytest.warns(DeprecationWarning) as record: # , match="mtls") as record:
1537
1537
transport = transport_class(
1538
1538
host="squid.clam.whelk",
1539
1539
credentials=mock_cred,
You can’t perform that action at this time.
0 commit comments