Skip to content

Commit 5cc1b29

Browse files
committed
cover
1 parent 414a0ce commit 5cc1b29

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

tests/unit/operations_v1/test_operations_rest_client.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,8 +560,18 @@ def test_operations_client_client_options_credentials_file(
560560
)
561561

562562

563-
def test_list_operations_rest():
564-
client = _get_operations_client(is_async=False)
563+
@pytest.mark.parametrize(
564+
"credentials_file",
565+
[None, "credentials.json"],
566+
)
567+
def test_list_operations_rest(credentials_file):
568+
sync_transport = transports.rest.OperationsRestTransport(
569+
credentials_file=credentials_file,
570+
http_options=HTTP_OPTIONS,
571+
)
572+
573+
client = AbstractOperationsClient(transport=sync_transport)
574+
565575
# Mock the http request call within the method and fake a response.
566576
with mock.patch.object(_get_session_type(is_async=False), "request") as req:
567577
# Designate an appropriate value for the returned response.

0 commit comments

Comments
 (0)