...
The following show alternative styles that produce the the same definition:
Code Block |
---|
| defs = Defs().add(
Suite("s1").add(
Task("t1"),
Task("t2"),
Task("t3").add(
Trigger("t1 == complete"),
Trigger("t2 == active"),
Trigger("t2 == aborted",False),
))) |
|
Code Block |
---|
| defs = Defs().add(Suite("s1"))
defs.s1 += [ Task("t{}".format(i)) for i in range(1,4) ]
defs.s1.t3 += [ Trigger("t1 == complete"),
Trigger("t2 == active"),
Trigger( |
|