Ejemplo n.º 1
0
 def test_destructive_activate_repeat_on_workflow(self,
                                                  app_repeat_on_workflow,
                                                  selenium):
     """Test activation of repeat on workflow.
 It should be checked separately as different requests are sent when
 repeat off and repeat on workflows are activated.
 """
     task_group = workflow_rest_facade.create_task_group(
         workflow=app_repeat_on_workflow)
     workflow_rest_facade.create_task_group_task(task_group=task_group)
     workflow_ui_facade.activate_workflow(app_repeat_on_workflow)
     workflow_cycles = workflow_ui_facade.get_workflow_cycles(
         app_repeat_on_workflow)
     expected_workflow_cycle = cycle_entity_population.create_workflow_cycle(
         app_repeat_on_workflow)
     test_utils.list_obj_assert(workflow_cycles, [expected_workflow_cycle])
Ejemplo n.º 2
0
 def test_destructive_activate_repeat_on_workflow(
     self, app_repeat_on_workflow, selenium
 ):
   """Test activation of repeat on workflow.
   It should be checked separately as different requests are sent when
   repeat off and repeat on workflows are activated.
   """
   task_group = workflow_rest_facade.create_task_group(
       workflow=app_repeat_on_workflow)
   workflow_rest_facade.create_task_group_task(task_group=task_group)
   workflow_ui_facade.activate_workflow(app_repeat_on_workflow)
   workflow_cycles = workflow_ui_facade.get_workflow_cycles(
       app_repeat_on_workflow)
   expected_workflow_cycle = cycle_entity_population.create_workflow_cycle(
       app_repeat_on_workflow)
   self.check_ggrc_6491(workflow_cycles, [expected_workflow_cycle])
   test_utils.list_obj_assert(workflow_cycles, [expected_workflow_cycle])
Ejemplo n.º 3
0
 def activate_workflow(self, app_workflow, app_task_group,
                       app_task_group_task, selenium):
     """Activates workflow."""
     workflow_ui_facade.activate_workflow(app_workflow)
Ejemplo n.º 4
0
 def activate_workflow(
     self, app_workflow, app_task_group, app_task_group_task, selenium
 ):
   """Activates workflow."""
   workflow_ui_facade.activate_workflow(app_workflow)