Commit e12f23fc authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[test][core] Improve push tests

parent ba8985b8
......@@ -279,15 +279,22 @@ class AssetRemoteTest(AssetBaseTest):
@slow
@skip_disconnected
def test_push_and_delete(self):
asset_name = self.object_map["create"]
self.create(asset_name)
asset_name = self.object_map["push"]
# now push the new object and then delete it remotely
exit_code, output = self.call("push", asset_name, prefix=tmp_prefix)
exit_code, output = self.call("push", asset_name)
nose.tools.eq_(exit_code, 0, output)
exit_code, output = self.call("rm", "--remote", asset_name, prefix=tmp_prefix)
exit_code, output = self.call("rm", "--remote", asset_name)
nose.tools.eq_(exit_code, 0, output)
@slow
@skip_disconnected
def test_fail_not_owner_push(self):
asset_name = self.object_map["not_owner_push"]
exit_code, output = self.call("push", asset_name)
nose.tools.eq_(exit_code, 1, output)
class OnlineTestMixin:
"""Mixin for using Django's live server"""
......
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