...
Code Block |
---|
from ecflow import * defs = Defs().add( [ Suite("s{0}".format(i)).add( , [ Family("f{0}".format(i)).add( , [ Task("t{0}".format(i)) for i in range(1,6)] ) for i in range(1,6)] ) for i in range(1,6) ] ) assert(len(defs)==5, " expected 5 suites but found " + str(len(defs))) for suite in defs: assert(len(suite)==5, " expected 5 familes but found " + str(len(suite))) for fam in suite: assert(len(fam)==5, " expected 5 tasks but found " + str(len(fam))) |
...