File tree 1 file changed +6
-2
lines changed
instrumentation/opentelemetry-instrumentation-aws-lambda/tests
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -436,7 +436,9 @@ def test_lambda_handles_handler_exception(self):
436
436
437
437
exc_env_patch .stop ()
438
438
439
- def test_lambda_handles_handler_exception_with_api_gateway_proxy_event (self ):
439
+ def test_lambda_handles_handler_exception_with_api_gateway_proxy_event (
440
+ self ,
441
+ ):
440
442
exc_env_patch = mock .patch .dict (
441
443
"os.environ" ,
442
444
{_HANDLER : "tests.mocks.lambda_function.handler_exc" },
@@ -445,7 +447,9 @@ def test_lambda_handles_handler_exception_with_api_gateway_proxy_event(self):
445
447
AwsLambdaInstrumentor ().instrument ()
446
448
# instrumentor re-raises the exception
447
449
with self .assertRaises (Exception ):
448
- mock_execute_lambda ({"requestContext" : {"http" : {"method" : "GET" }}})
450
+ mock_execute_lambda (
451
+ {"requestContext" : {"http" : {"method" : "GET" }}}
452
+ )
449
453
450
454
spans = self .memory_exporter .get_finished_spans ()
451
455
self .assertEqual (len (spans ), 1 )
You can’t perform that action at this time.
0 commit comments