def test_key_error(mock_bpm_status, which_lambda, which_environment_variables, expected_message, assertion, which_runtime_variables): if not which_runtime_variables: test_generic_library.key_error(which_lambda, which_environment_variables, expected_message, assertion) else: which_runtime_variables["RuntimeVariables"]["data"] = '[{"Test": 0}]' test_generic_library.key_error(which_lambda, which_environment_variables, expected_message, assertion, which_runtime_variables)
def test_key_error(mock_send_bpm_status, which_lambda, which_environment_variables, expected_message, assertion, which_runtime_variables): if which_runtime_variables is None: test_generic_library.key_error(which_lambda, which_environment_variables, expected_message, assertion) else: with open("tests/fixtures/test_method_bad_input.json", "r") as file_1: file_data = file_1.read() prepared_data = pd.DataFrame(json.loads(file_data)) print(prepared_data) which_runtime_variables[ 'RuntimeVariables']['data'] = prepared_data.to_json(orient="records") test_generic_library.key_error(which_lambda, which_environment_variables, expected_message, assertion, which_runtime_variables)
def test_key_error(which_lambda, which_environment_variables, expected_message, assertion): test_generic_library.key_error(which_lambda, which_environment_variables, expected_message, assertion)