File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -560,8 +560,18 @@ def test_operations_client_client_options_credentials_file(
560
560
)
561
561
562
562
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
+
565
575
# Mock the http request call within the method and fake a response.
566
576
with mock .patch .object (_get_session_type (is_async = False ), "request" ) as req :
567
577
# Designate an appropriate value for the returned response.
You can’t perform that action at this time.
0 commit comments