File tree Expand file tree Collapse file tree 2 files changed +18
-18
lines changed
tools/azure-sdk-tools/devtools_testutils Expand file tree Collapse file tree 2 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -57,15 +57,15 @@ async def combined_call(*args, **kwargs):
57
57
# we define test_output before invoking the test so the variable is defined in case of an exception
58
58
test_output = None
59
59
try :
60
- test_output = await test_func ( * args , variables = variables , ** trimmed_kwargs )
61
- except TypeError :
62
- logger = logging . getLogger ()
63
- logger . info (
64
- "This test can't accept variables as input. The test method should accept `**kwargs` and/or a "
65
- "`variables` parameter to make use of recorded test variables. "
66
- )
67
- try :
68
- test_output = await test_func (* args , ** trimmed_kwargs )
60
+ try :
61
+ test_output = await test_func ( * args , variables = variables , ** trimmed_kwargs )
62
+ except TypeError :
63
+ logger = logging . getLogger ()
64
+ logger . info (
65
+ "This test can't accept variables as input. The test method should accept `**kwargs` and/or a "
66
+ "`variables` parameter to make use of recorded test variables."
67
+ )
68
+ test_output = await test_func (* args , ** trimmed_kwargs )
69
69
except ResourceNotFoundError as error :
70
70
error_body = ContentDecodePolicy .deserialize_from_http_generics (error .response )
71
71
error_with_message = ResourceNotFoundError (message = error_body ["Message" ], response = error .response )
Original file line number Diff line number Diff line change @@ -187,15 +187,15 @@ def combined_call(*args, **kwargs):
187
187
# we define test_output before invoking the test so the variable is defined in case of an exception
188
188
test_output = None
189
189
try :
190
- test_output = test_func ( * args , variables = variables , ** trimmed_kwargs )
191
- except TypeError :
192
- logger = logging . getLogger ()
193
- logger . info (
194
- "This test can't accept variables as input. The test method should accept `**kwargs` and/or a "
195
- "`variables` parameter to make use of recorded test variables. "
196
- )
197
- try :
198
- test_output = test_func (* args , ** trimmed_kwargs )
190
+ try :
191
+ test_output = test_func ( * args , variables = variables , ** trimmed_kwargs )
192
+ except TypeError :
193
+ logger = logging . getLogger ()
194
+ logger . info (
195
+ "This test can't accept variables as input. The test method should accept `**kwargs` and/or a "
196
+ "`variables` parameter to make use of recorded test variables."
197
+ )
198
+ test_output = test_func (* args , ** trimmed_kwargs )
199
199
except ResourceNotFoundError as error :
200
200
error_body = ContentDecodePolicy .deserialize_from_http_generics (error .response )
201
201
error_with_message = ResourceNotFoundError (message = error_body ["Message" ], response = error .response )
You can’t perform that action at this time.
0 commit comments