Exemplo n.º 1
0
def test_remap_job():
    job = TEMPLATE_JOB
    tool = from_url(join(dirname(__file__), 'bwa-mem.json#tool'))
    context = init_context()
    fix_types(tool)
    app = context.from_dict(tool)
    input_file = from_url(join(dirname(__file__), 'inputs.json'))
    startdir = './'
Exemplo n.º 2
0
def test_workflow():
    path = abspath(join(__file__, '../../test_runtime/wf_tests.yaml'))

    context = init_context()
    doc = from_url(path)
    tests = doc['tests']
    for test_name, test in six.iteritems(tests):
        features = test.get('requiresFeatures', [])
        if 'map' not in features:
            fix_types(test['job']['app'])
            yield assert_execution, context.from_dict(test['job']), test['outputs']