@@ -30,7 +30,7 @@ def test_dd_lambda_handler_env_var_malformed(self):
3030 )
3131
3232 @patch .dict (os .environ , {"DD_LAMBDA_HANDLER" : "nonsense.nonsense" }, clear = True )
33- @patch ("datadog_lambda.tracing .emit_telemetry_on_exception_outside_of_handler" )
33+ @patch ("datadog_lambda.wrapper .emit_telemetry_on_exception_outside_of_handler" )
3434 @patch ("time.time_ns" , return_value = 42 )
3535 def test_exception_importing_module (self , mock_time , mock_emit_telemetry ):
3636 with self .assertRaises (ModuleNotFoundError ) as test_context :
@@ -44,7 +44,7 @@ def test_exception_importing_module(self, mock_time, mock_emit_telemetry):
4444
4545 @patch .dict (os .environ , {"DD_LAMBDA_HANDLER" : "nonsense.nonsense" }, clear = True )
4646 @patch ("importlib.import_module" , return_value = None )
47- @patch ("datadog_lambda.tracing .emit_telemetry_on_exception_outside_of_handler" )
47+ @patch ("datadog_lambda.wrapper .emit_telemetry_on_exception_outside_of_handler" )
4848 @patch ("time.time_ns" , return_value = 42 )
4949 def test_exception_getting_handler_func (
5050 self , mock_time , mock_emit_telemetry , mock_import
@@ -60,7 +60,7 @@ def test_exception_getting_handler_func(
6060
6161 @patch .dict (os .environ , {"DD_LAMBDA_HANDLER" : "nonsense.nonsense" }, clear = True )
6262 @patch ("importlib.import_module" )
63- @patch ("datadog_lambda.tracing .emit_telemetry_on_exception_outside_of_handler" )
63+ @patch ("datadog_lambda.wrapper .emit_telemetry_on_exception_outside_of_handler" )
6464 @patch ("time.time_ns" , return_value = 42 )
6565 @patch ("datadog_lambda.wrapper.datadog_lambda_wrapper" )
6666 def test_handler_success (
0 commit comments