Commit 266362fb authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[test][experiments] Add basic tests of new functionnalities

parent d0f060ed
Pipeline #33288 passed with stage
in 6 minutes and 19 seconds
...@@ -905,8 +905,8 @@ def reset(ctx, name): ...@@ -905,8 +905,8 @@ def reset(ctx, name):
@experiments.command() @experiments.command()
@click.argument("name", nargs=1) @click.argument("name", nargs=1)
@click.pass_context @click.pass_context
def status(ctx, name): def runstatus(ctx, name):
"""Shows the current status of a running experiment""" """Shows the status of an experiment on the platform"""
config = ctx.meta.get("config") config = ctx.meta.get("config")
......
...@@ -275,3 +275,35 @@ def test_draw(): ...@@ -275,3 +275,35 @@ def test_draw():
nose.tools.assert_true( nose.tools.assert_true(
os.path.exists(os.path.join(tmp_prefix, "experiments", obj + ".png")) os.path.exists(os.path.join(tmp_prefix, "experiments", obj + ".png"))
) )
@slow
@nose.tools.with_setup(teardown=cleanup)
@skipif(disconnected, "missing test platform (%s)" % platform)
def test_start():
obj = "user/user/double_triangle/1/double_triangle"
nose.tools.eq_(call("start", obj), 0)
@slow
@nose.tools.with_setup(teardown=cleanup)
@skipif(disconnected, "missing test platform (%s)" % platform)
def test_cancel():
obj = "user/user/double_triangle/1/double_triangle"
nose.tools.eq_(call("cancel", obj), 0)
@slow
@nose.tools.with_setup(teardown=cleanup)
@skipif(disconnected, "missing test platform (%s)" % platform)
def test_reset():
obj = "user/user/double_triangle/1/double_triangle"
nose.tools.eq_(call("reset", obj), 0)
@slow
@nose.tools.with_setup(teardown=cleanup)
@skipif(disconnected, "missing test platform (%s)" % platform)
def test_runstatus():
obj = "user/user/double_triangle/1/double_triangle"
nose.tools.eq_(call("runstatus", obj), 0)
...@@ -46,6 +46,7 @@ requirements: ...@@ -46,6 +46,7 @@ requirements:
- click - click
- click-plugins - click-plugins
- graphviz - graphviz
- ncurses
test: test:
requires: requires:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment