コード例 #1
0
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,
    )
コード例 #2
0
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,
        )
コード例 #3
0
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)
コード例 #4
0
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)
コード例 #5
0
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)
コード例 #6
0
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)
コード例 #7
0
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,
    )