@@ -207,7 +207,8 @@ class TestCase:
207207 ),
208208 ),
209209 TestCase (
210- reason = "Function should fail gracefully when compose script raises an exception." ,
210+ reason = "Function should fail gracefully when compose script raises"
211+ " an exception." ,
211212 req = fnv1 .RunFunctionRequest (
212213 input = resource .dict_to_struct (
213214 {"script" : composition_script_with_exception }
@@ -217,7 +218,9 @@ class TestCase:
217218 meta = fnv1 .ResponseMeta (ttl = durationpb .Duration (seconds = 60 )),
218219 results = [
219220 {
220- "message" : "Exception: <class 'AttributeError'>, traceback: [' File \" <string>\" , line 14, in compose\\ n']" ,
221+ "message" : "Exception: <class 'AttributeError'>, traceback:"
222+ " [' File \" <string>\" , line 14, in compose\\ n'"
223+ "]" ,
221224 "severity" : "SEVERITY_FATAL" ,
222225 }
223226 ],
@@ -240,7 +243,8 @@ class TestCase:
240243 ),
241244 ),
242245 TestCase (
243- reason = "Function should fail gracefully when async compose script raises an exception." ,
246+ reason = "Function should fail gracefully when async compose script"
247+ " raises an exception." ,
244248 req = fnv1 .RunFunctionRequest (
245249 input = resource .dict_to_struct (
246250 {"script" : async_composition_script_with_exception }
@@ -250,7 +254,9 @@ class TestCase:
250254 meta = fnv1 .ResponseMeta (ttl = durationpb .Duration (seconds = 60 )),
251255 results = [
252256 {
253- "message" : "Exception: <class 'AttributeError'>, traceback: [' File \" <string>\" , line 14, in compose\\ n']" ,
257+ "message" : "Exception: <class 'AttributeError'>, traceback:"
258+ " [' File \" <string>\" , line 14, in compose\\ n'"
259+ "]" ,
254260 "severity" : "SEVERITY_FATAL" ,
255261 }
256262 ],
0 commit comments