Skip to content

Commit 14aba79

Browse files
committed
mock blocking exception
1 parent 3b04b06 commit 14aba79

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/test_wrapper.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,11 +724,14 @@ def test_blocking_before(self):
724724
def test_blocking_during(self):
725725
self.mock_get_asm_blocking_response.return_value = None
726726

727+
class BlockingException(Exception):
728+
pass
729+
727730
def lambda_handler(event, context):
728731
self.mock_get_asm_blocking_response.return_value = (
729732
self.fake_blocking_response
730733
)
731-
raise wrapper.BlockingException()
734+
raise BlockingException()
732735

733736
lambda_handler = wrapper.datadog_lambda_wrapper(lambda_handler)
734737

0 commit comments

Comments
 (0)