Skip to content

Commit f118042

Browse files
authoredMar 27, 2024··
Upgrade simplejson to 3.18.4 (#136)
1 parent 8930afa commit f118042

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
 

Diff for: ‎requirements/base.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
simplejson==3.17.2
1+
simplejson==3.18.4

Diff for: ‎tests/test_bootstrap.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1478,18 +1478,19 @@ def test_run(self, mock_runtime_client, mock_handle_event_request):
14781478
"awslambdaric.bootstrap.LambdaLoggerHandler",
14791479
Mock(side_effect=Exception("Boom!")),
14801480
)
1481-
@patch("awslambdaric.bootstrap.build_fault_result", MagicMock())
1481+
@patch("awslambdaric.bootstrap.build_fault_result")
14821482
@patch("awslambdaric.bootstrap.log_error", MagicMock())
14831483
@patch("awslambdaric.bootstrap.LambdaRuntimeClient", MagicMock())
14841484
@patch("awslambdaric.bootstrap.sys")
1485-
def test_run_exception(self, mock_sys):
1485+
def test_run_exception(self, mock_sys, mock_build_fault_result):
14861486
class TestException(Exception):
14871487
pass
14881488

14891489
expected_app_root = "/tmp/test/app_root"
14901490
expected_handler = "app.my_test_handler"
14911491
expected_lambda_runtime_api_addr = "test_addr"
14921492

1493+
mock_build_fault_result.return_value = {}
14931494
mock_sys.exit.side_effect = TestException("Boom!")
14941495

14951496
with self.assertRaises(TestException):

0 commit comments

Comments
 (0)
Please sign in to comment.