Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 4
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)