"""Lambda test module.""" from unittest.mock import patch import config from src import app as index @patch('src.app.boto3') def test_handler(botoMock, mock_event_msk): """Test handler function.""" config.STEP_FN_ARN = 'test-step-function-arn' execute_response = {'step_fn': 'result'} botoMock.client().start_execution.return_value = execute_response result = index.handler(mock_event_msk, None) assert result == {'statusCode': 200, 'status': 'OK'}