Commit 04c0c452 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[tests][algorithms] Updated all objects used from user to legacy

parent 17333e9e
......@@ -73,7 +73,7 @@ def test_local_list():
@nose.tools.with_setup(teardown=cleanup)
@skipif(disconnected, "missing test platform (%s)" % platform)
def test_pull_one():
obj = 'user/integers_add/1'
obj = 'legacy/integers_add/1'
nose.tools.eq_(call('pull', obj, prefix=tmp_prefix), 0)
s = Storage(tmp_prefix, obj)
assert s.exists()
......@@ -90,7 +90,7 @@ def test_pull_all():
@nose.tools.with_setup(teardown=cleanup)
@skipif(disconnected, "missing test platform (%s)" % platform)
def test_diff():
obj = 'user/integers_add/1'
obj = 'legacy/integers_add/1'
nose.tools.eq_(call('pull', obj, prefix=tmp_prefix), 0)
# quickly modify the user algorithm by emptying it
......@@ -110,18 +110,18 @@ def test_status():
def test_check_valid():
obj = 'user/valid_algorithm/1'
obj = 'legacy/valid_algorithm/1'
nose.tools.eq_(call('check', obj), 0)
def test_check_invalid():
obj = 'user/no_inputs_declarations/1'
obj = 'legacy/no_inputs_declarations/1'
nose.tools.eq_(call('check', obj), 1)
@nose.tools.with_setup(teardown=cleanup)
def test_create(obj=None):
obj = obj or 'user/algorithm/1'
obj = obj or 'legacy/algorithm/1'
nose.tools.eq_(call('create', obj, prefix=tmp_prefix), 0)
s = Storage(tmp_prefix, obj)
assert s.exists()
......@@ -130,9 +130,9 @@ def test_create(obj=None):
@nose.tools.with_setup(teardown=cleanup)
def test_new_version():
obj = 'user/algorithm/1'
obj = 'legacy/algorithm/1'
test_create(obj)
obj2 = 'user/algorithm/2'
obj2 = 'legacy/algorithm/2'
nose.tools.eq_(call('version', obj, prefix=tmp_prefix), 0)
s = Storage(tmp_prefix, obj2)
assert s.exists()
......@@ -144,9 +144,9 @@ def test_new_version():
@nose.tools.with_setup(teardown=cleanup)
def test_fork():
obj = 'user/algorithm/1'
obj = 'legacy/algorithm/1'
test_create(obj)
obj2 = 'user/different/1'
obj2 = 'legacy/different/1'
nose.tools.eq_(call('fork', obj, obj2, prefix=tmp_prefix), 0)
s = Storage(tmp_prefix, obj2)
assert s.exists()
......@@ -158,7 +158,7 @@ def test_fork():
@nose.tools.with_setup(teardown=cleanup)
def test_delete_local():
obj = 'user/algorithm/1'
obj = 'legacy/algorithm/1'
storage = test_create(obj)
# quickly make sure it exists
......@@ -172,7 +172,7 @@ def test_delete_local():
@nose.tools.with_setup(teardown=cleanup)
@skipif(disconnected, "missing test platform (%s)" % platform)
def test_push_and_delete():
obj = 'user/newobject/1'
obj = 'legacy/newobject/1'
test_create(obj)
# now push the new object and then delete it remotely
......
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