def test_user_input_invalid_test_empty_file( user_input_invalid_test_empty_file): release_db_lock() ret = upload.lambda_handler(user_input_invalid_test_empty_file, "") data = json.loads(ret["body"]) assert data["results"] == FILE_VALIDATION_FAIL assert ret["statusCode"] == HTTP_FAIL_STATUS
def test_user_input_valid_test_case_3(user_input_valid_test_case_3): release_db_lock() ret = upload.lambda_handler(user_input_valid_test_case_3, "") data = json.loads(ret["body"]) assert data["results"] == SUCCESS_MSG_RESPONSE assert ret["statusCode"] == HTTP_SUCCESS_STATUS