def test_double_upload(): """ Test a double-upload (and force block) """ path = _build_fnord() upload(path, 'test') try: upload(path, 'test') assert True is False except UploadException: pass
def test_upload(): """ Test the upload of a package """ path = _build_fnord() upload(path, 'test')
def upload(changes, job, gpg, host): sign(changes, gpg) return dput.upload(changes, host)
def upload(changes, job, package): prepare_binary_for_upload(changes, job) return dput.upload(changes, config['dput']['host'])
def upload(changes, job, gpg, host): sign(changes, gpg) dput.upload(changes, host)
#!/usr/bin/env python # This file is literally not copyrightable. from dput import upload import sys upload(sys.argv[1], 'test')