コード例 #1
0
 def test_delete_workflow(
     self, login_as_creator_or_reader, app_workflow, selenium
 ):
   """Test deletion of workflow."""
   ui_facade.delete_obj(app_workflow)
   ui_facade.open_obj(app_workflow)
   assert ui_utils.is_error_404()
コード例 #2
0
def archive_workflow(workflow):
    """Archives workflow."""
    ui_facade.open_obj(workflow)
    info_widget = internal_ui_operations.info_widget_page(workflow)
    info_widget.archive()
    workflow.is_archived = True
    workflow.recurrences_started = False
    workflow.modified_by = users.current_person()
コード例 #3
0
 def test_delete_workflow(self, login_as_creator_or_reader, app_workflow,
                          selenium):
     """Test deletion of workflow."""
     ui_facade.delete_obj(app_workflow)
     ui_facade.open_obj(app_workflow)
     assert ui_utils.is_error_404()