def test_upload_anaconda_with_user_and_label(): tasks = uploads.upload_anaconda('steve', {}, 'abc', user='******', label='dev') assert {'--user', 'llama', '--label', 'dev'}.issubset(set(tasks[0]['config']['run']['args']))
def test_upload_anaconda_with_user(): tasks = uploads.upload_anaconda('steve', 'abc', user="******") assert {'--user', 'llama'}.issubset(set(tasks[0]['config']['run']['args']))
def test_upload_anaconda(): tasks = uploads.upload_anaconda('steve', 'abc') assert len(tasks) == 1 task = tasks[0] assert task['config']['run']['path'] == 'anaconda' assert task['config']['run']['args'][-1] == 'steve'