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)
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)
def test_pipe_deps(arg, answer): deps = topo.pipe_deps(arg) assert sorted(deps) == sorted(answer)