def create_workflow(workflow): """Creates a workflow `workflow`.""" selenium_utils.open_url(url.dashboard()) dashboard.Dashboard().start_workflow() internal_ui_operations.submit_obj(workflow)
def create_threat(threat): """Creates a threat `threat`.""" selenium_utils.open_url(url.dashboard()) dashboard.Dashboard().open_create_obj_modal(objects.get_singular( objects.THREATS, title=True)) internal_ui_operations.submit_obj(threat)