def test_good_action_bad_input_2(): run_action( "./tests/plugin/hello_world/tests/action/hello/bad_input_2.json", "./tests/plugin/hello_world/tests/action/hello/bad_input_2_output.json", plugin, expect_fail=True, )
def test_bad_json_action(): with pytest.raises(Exception): run_action( "./tests/plugin/hello_world/tests/action/return_bad_json/input.json", "./tests/plugin/hello_world/tests/action/return_bad_json/output.json", plugin, )
def test_good_action_bad_input_2(): if six.PY2: return run_action( './tests/plugin/hello_world/tests/action/hello/bad_input_2.json', './tests/plugin/hello_world/tests/action/hello/bad_input_2_output.json', plugin, expect_fail=True)
def test_bad_json_action(): if six.PY2: return with pytest.raises(Exception): run_action( './tests/plugin/hello_world/tests/action/return_bad_json/input.json', './tests/plugin/hello_world/tests/action/return_bad_json/output.json', plugin)
def test_simple_action(): run_action('./tests/plugin/hello_world/tests/action/hello/input.json', './tests/plugin/hello_world/tests/action/hello/output.json', plugin)
def test_bad_action(): with pytest.raises(Exception): run_action( './tests/plugin/hello_world/tests/action/throw_exception/input.json', './tests/plugin/hello_world/tests/action/throw_exception/output.json', plugin)
def test_simple_action(): run_action( "./tests/plugin/hello_world/tests/action/hello/input.json", "./tests/plugin/hello_world/tests/action/hello/output.json", plugin, )