Beispiel #1
0
def flow_designer_window():
    """Testing fixture for the FLow Designer window"""
    from automagica.gui.apps import FlowApp

    app = FlowApp()

    # Let application render
    app.update()

    # Get children of app
    windows = app.winfo_children()

    # First child is the Flow designer window
    flow_designer_window = windows[0]

    # Render the window
    flow_designer_window.update()

    yield flow_designer_window

    # Clean-up
    for window in windows:
        window.destroy()

    app.quit()
    app.destroy()
Beispiel #2
0
def test_flow_app():
    """
    Testing scenario to test Automagica Flow application
    """
    app = FlowApp()
    app.destroy()
    app.quit()