From f122b4119257c7f6724d0af64bb3bf620f4d79dd Mon Sep 17 00:00:00 2001 From: Alessandro Bologna Date: Wed, 24 Apr 2024 15:48:20 -0400 Subject: [PATCH] reformatted with black --- .../tests/test_aws_lambda_instrumentation_manual.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/instrumentation/opentelemetry-instrumentation-aws-lambda/tests/test_aws_lambda_instrumentation_manual.py b/instrumentation/opentelemetry-instrumentation-aws-lambda/tests/test_aws_lambda_instrumentation_manual.py index 82cdf11674..a2730028e8 100644 --- a/instrumentation/opentelemetry-instrumentation-aws-lambda/tests/test_aws_lambda_instrumentation_manual.py +++ b/instrumentation/opentelemetry-instrumentation-aws-lambda/tests/test_aws_lambda_instrumentation_manual.py @@ -436,7 +436,9 @@ def test_lambda_handles_handler_exception(self): exc_env_patch.stop() - def test_lambda_handles_handler_exception_with_api_gateway_proxy_event(self): + def test_lambda_handles_handler_exception_with_api_gateway_proxy_event( + self, + ): exc_env_patch = mock.patch.dict( "os.environ", {_HANDLER: "tests.mocks.lambda_function.handler_exc"}, @@ -445,7 +447,9 @@ def test_lambda_handles_handler_exception_with_api_gateway_proxy_event(self): AwsLambdaInstrumentor().instrument() # instrumentor re-raises the exception with self.assertRaises(Exception): - mock_execute_lambda({"requestContext": {"http": {"method": "GET"}}}) + mock_execute_lambda( + {"requestContext": {"http": {"method": "GET"}}} + ) spans = self.memory_exporter.get_finished_spans() self.assertEqual(len(spans), 1)