We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1eba13 commit 8398248Copy full SHA for 8398248
tests/unit/operations_v1/test_operations_rest_client.py
@@ -551,7 +551,12 @@ def test_operations_client_client_options_credentials_file(
551
if "async" in str(client_class):
552
# TODO(): Add support for credentials file to async REST transport.
553
with pytest.raises(core_exceptions.AsyncRestUnsupportedParameterError):
554
- client_class(client_options=options, transport=transport_name)
+ with pytest.warns(
555
+ DeprecationWarning,
556
+ match="argument is deprecated because of a potential security risk",
557
+ ):
558
+
559
+ client_class(client_options=options, transport=transport_name)
560
else:
561
with mock.patch.object(transport_class, "__init__") as patched:
562
patched.return_value = None
0 commit comments