Skip to content

Commit

Permalink
reformatted with black
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrobologna committed Apr 24, 2024
1 parent 1c0fffd commit f122b41
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand All @@ -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)
Expand Down

0 comments on commit f122b41

Please sign in to comment.