Exemple #1
0
def test_run_tree_wf_3():
    wfdoc = workflow.load_wfdoc(TREE_WF)
    wf = workflow.TreeWorkflow(data_root_dir=CMIP5_ARCHIVE_ROOT,
                               output_dir=tempfile.mkdtemp())
    output = wf.run(wfdoc)
    assert 'output.nc' in output[0]
Exemple #2
0
def test_run_tree_wf_3():
    wfdoc = workflow.load_wfdoc(TREE_WF)
    wf = workflow.TreeWorkflow(
        output_dir=tempfile.mkdtemp())
    output = wf.run(wfdoc)
    assert 'tas_mon_HadGEM2-ES_rcp85_r1i1p1_20850116-21201216.nc' in output[0]
Exemple #3
0
def test_validate_tree_wf():
    wfdoc = workflow.load_wfdoc(TREE_WF)
    wf = workflow.TreeWorkflow(data_root_dir=CMIP5_ARCHIVE_ROOT,
                               output_dir=tempfile.mkdtemp())
    assert wf.validate(wfdoc) is True
Exemple #4
0
def test_validate_tree_wf():
    wfdoc = workflow.load_wfdoc(TREE_WF)
    wf = workflow.TreeWorkflow(
        output_dir=tempfile.mkdtemp())
    assert wf.validate(wfdoc) is True