Esempio n. 1
0
def available_targets():
    for task in tasks():
        task = task()
        targets = task.output()
        if isiterable(targets):
            for target in targets:
                yield target
        else:
            yield targets
Esempio n. 2
0
def test_isiterable():
    assert isiterable([1, 2, 3]) is True
    assert isiterable('abc') is True
    assert isiterable(5) is False
Esempio n. 3
0
def test_isiterable():
    assert isiterable([1, 2, 3]) is True
    assert isiterable('abc') is True
    assert isiterable(5) is False