Skip to content

Commit 8398248

Browse files
committed
chore: fix additional test for deprecation warning
1 parent e1eba13 commit 8398248

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/unit/operations_v1/test_operations_rest_client.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,12 @@ def test_operations_client_client_options_credentials_file(
551551
if "async" in str(client_class):
552552
# TODO(): Add support for credentials file to async REST transport.
553553
with pytest.raises(core_exceptions.AsyncRestUnsupportedParameterError):
554-
client_class(client_options=options, transport=transport_name)
554+
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)
555560
else:
556561
with mock.patch.object(transport_class, "__init__") as patched:
557562
patched.return_value = None

0 commit comments

Comments
 (0)