You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
519 B
21 lines
519 B
class Scenario(object):
|
|
"""
|
|
A scenario with a number of actions to perform.
|
|
"""
|
|
def __init__(self, *args):
|
|
self.actions = args
|
|
|
|
def execute(self, context):
|
|
"""
|
|
Executes the scenario.
|
|
|
|
@param context ActionContext instance providing the dependencies for
|
|
the actions in the scenario.
|
|
"""
|
|
for action in self.actions:
|
|
action.execute(context)
|
|
|
|
def __repr__(self):
|
|
return 'Scenario [actions=%s]' % str(self.actions)
|
|
|