def main_task():
     with settings(**first):
         execute_tasks(env.tasks)
         self.assertTrue(self.task1executed)  
         self.assertTrue(self.task1_2executed) 
     with settings(**second):
         execute_tasks(env.tasks)
         self.assertTrue(self.task2executed)
     with settings(**params):
         execute_tasks(env.tasks)
         self.assertTrue(self.task_with_params_executed)
     with settings(**_settings):
         execute_tasks(env.tasks)
         self.assertTrue(self.task_with_settings_executed)
Exemplo n.º 2
0
def deploy_server_basic():
    execute(deploy_basic) 
    with settings(**server_basic):
        execute_tasks(env.tasks)
Exemplo n.º 3
0
def deploy_basic():
    with settings(**basic):
        execute_tasks(env.tasks)