Skip to content

Commit f122b41

Browse files
reformatted with black
1 parent 1c0fffd commit f122b41

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Diff for: instrumentation/opentelemetry-instrumentation-aws-lambda/tests/test_aws_lambda_instrumentation_manual.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,9 @@ def test_lambda_handles_handler_exception(self):
436436

437437
exc_env_patch.stop()
438438

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+
):
440442
exc_env_patch = mock.patch.dict(
441443
"os.environ",
442444
{_HANDLER: "tests.mocks.lambda_function.handler_exc"},
@@ -445,7 +447,9 @@ def test_lambda_handles_handler_exception_with_api_gateway_proxy_event(self):
445447
AwsLambdaInstrumentor().instrument()
446448
# instrumentor re-raises the exception
447449
with self.assertRaises(Exception):
448-
mock_execute_lambda({"requestContext": {"http": {"method": "GET"}}})
450+
mock_execute_lambda(
451+
{"requestContext": {"http": {"method": "GET"}}}
452+
)
449453

450454
spans = self.memory_exporter.get_finished_spans()
451455
self.assertEqual(len(spans), 1)

0 commit comments

Comments
 (0)