示例#1
0
def test_validate_dependencies_fail(config_3, pipe_defn):
    tasks = ['ccdc']
    dsk = topo.pipe_deps(pipe_defn)
    dsk = topo.config_to_deps(config_3, dsk)
    # This one should fail -- missing NDMI calculation
    with pytest.raises(KeyError) as exc:
        topo.validate_dependencies(tasks, dsk)
    assert 'unmet dependencies' in str(exc.value)
    assert 'ndmi' in str(exc.value)
示例#2
0
def test_validate_dependencies_fail(config_3, pipe_defn):
    tasks = ['ccdc']
    dsk = topo.pipe_deps(pipe_defn)
    dsk = topo.config_to_deps(config_3, dsk)
    # This one should fail -- missing NDMI calculation
    with pytest.raises(KeyError) as exc:
        topo.validate_dependencies(tasks, dsk)
    assert 'unmet dependencies' in str(exc.value)
    assert 'ndmi' in str(exc.value)
示例#3
0
def test_validate_dependencies_1(config_1, pipe_defn):
    tasks = ['merged']
    dsk = topo.pipe_deps(pipe_defn)
    dsk = topo.config_to_deps(config_1, dsk)

    topo.validate_dependencies(tasks, dsk)
示例#4
0
def test_pipe_deps(arg, answer):
    deps = topo.pipe_deps(arg)
    assert sorted(deps) == sorted(answer)
示例#5
0
def test_validate_dependencies_1(config_1, pipe_defn):
    tasks = ['merged']
    dsk = topo.pipe_deps(pipe_defn)
    dsk = topo.config_to_deps(config_1, dsk)

    topo.validate_dependencies(tasks, dsk)
示例#6
0
def test_pipe_deps(arg, answer):
    deps = topo.pipe_deps(arg)
    assert sorted(deps) == sorted(answer)