From 7fc0ebff5479bb2d80fc8733d3b3fd0c317ff92e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 19 Sep 2024 17:51:47 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/python/impactx/dashboard/Analyze/plotsMain.py | 3 +-- tests/python/dashboard/test_dashboard.py | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/python/impactx/dashboard/Analyze/plotsMain.py b/src/python/impactx/dashboard/Analyze/plotsMain.py index e85d49068..b619e2305 100644 --- a/src/python/impactx/dashboard/Analyze/plotsMain.py +++ b/src/python/impactx/dashboard/Analyze/plotsMain.py @@ -152,7 +152,6 @@ async def print_lines(): ctrl.terminal_print(line) ctrl.terminal_print("Simulation complete.") - asyncio.create_task(print_lines()) @@ -176,7 +175,7 @@ def on_filtered_data_change(**kwargs): @ctrl.add("run_simulation") def run_simulation_and_store(): - state.simulation_complete = True, + state.simulation_complete = (True,) state.plot_options = available_plot_options(simulationClicked=True) run_simulation_impactX() update_plot() diff --git a/tests/python/dashboard/test_dashboard.py b/tests/python/dashboard/test_dashboard.py index a455d88d9..186e9a216 100644 --- a/tests/python/dashboard/test_dashboard.py +++ b/tests/python/dashboard/test_dashboard.py @@ -81,7 +81,9 @@ def test_dashboard(): sb.click("#Run_route") sb.click("#run_simulation_button") - assert check_until_visible(sb, "#simulation_complete"), "Simulation did not complete successfully." + assert check_until_visible( + sb, "#simulation_complete" + ), "Simulation did not complete successfully." finally: if app_process is not None: