1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
from os import path
# This is to test end2end i18n behavior.
extra_plugin_dir = path.join(path.dirname(path.realpath(__file__)), "template_plugin")
def test_templates_1(testbot):
assert "ok" in testbot.exec_command("!test template1")
def test_templates_2(testbot):
assert "ok" in testbot.exec_command("!test template2")
def test_templates_3(testbot):
assert "ok" in testbot.exec_command("!test template3")
def test_templates_4(testbot):
assert "ok" in testbot.exec_command("!test template4 ok")
def test_templates_5(testbot):
assert "the following arguments are required: my_var" in testbot.exec_command(
"!test template4"
)
|