def flow_designer_window(): """Testing fixture for the FLow Designer window""" from automagica.gui.apps import FlowApp pytest.automagica_tk.update() app = FlowApp(pytest.automagica_tk) # 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.destroy()
def test_flow_app(): """ Testing scenario to test Automagica Flow application """ app = FlowApp() app.destroy() app.quit()