Example #1
0
def test_custom_parameter(custom_parameter_workflow: Workflow, qtbot):
    workflow_editor = WorkflowEditor(custom_parameter_workflow)
    workflow_editor.show()
    qtbot.addWidget(workflow_editor)
    workflow_editor.workflowview.setCurrentIndex(
        workflow_editor.workflowview.model().createIndex(0, 0)
    )  # Note: models is empty here because pluginmanger hasn't finished load yet
def test_custom_parameter(custom_parameter_workflow: Workflow, qtbot):
    workflow_editor = WorkflowEditor(custom_parameter_workflow)
    workflow_editor.show()
    qtbot.addWidget(workflow_editor)
    workflow_editor.workflowview.selectRow(
        0
    )  # Note: models is empty here because pluginmanger hasn't finished load yet
Example #3
0
def test_menu(simple_workflow, qtbot):
    manager.qt_is_safe = True
    manager.initialize_types()
    manager.collect_plugins()

    workflow_editor = WorkflowEditor(simple_workflow)
    workflow_editor.show()
    qtbot.addWidget(workflow_editor)
Example #4
0
def test_menu(qtbot):
    workflow_editor = WorkflowEditor(Workflow())
    workflow_editor.show()
    qtbot.addWidget(workflow_editor)

    manager.qt_is_safe = True
    manager.initialize_types()
    manager.collect_plugins()

    qtbot.wait(10000)
Example #5
0
def test_workflow_selector(simple_workflow: Workflow,
                           custom_parameter_workflow: Workflow, square_op,
                           qtbot):
    workflow_editor = WorkflowEditor(simple_workflow,
                                     workflows={
                                         simple_workflow: 'Simple',
                                         custom_parameter_workflow: "Custom"
                                     })
    simple_workflow.add_operation(square_op.clone())
    workflow_editor.show()
    qtbot.addWidget(workflow_editor)
Example #6
0
def test_simple(simple_workflow: Workflow, square_op, qtbot):
    workflow_editor = WorkflowEditor(simple_workflow)
    simple_workflow.add_operation(square_op.clone())
    workflow_editor.show()
    qtbot.addWidget(workflow_editor)
def test_simple(simple_workflow: Workflow, qtbot):
    workflow_editor = WorkflowEditor(simple_workflow)
    workflow_editor.show()
    qtbot.addWidget(workflow_editor)