diff --git a/tests/python/dashboard/test_dashboard.py b/tests/python/dashboard/test_dashboard.py index 25a7004a0..8279d2d99 100644 --- a/tests/python/dashboard/test_dashboard.py +++ b/tests/python/dashboard/test_dashboard.py @@ -1,12 +1,17 @@ import importlib -from util import set_input_value, start_dashboard, wait_for_dashboard_ready, wait_for_ready - import pytest +from util import ( + set_input_value, + start_dashboard, + wait_for_dashboard_ready, + wait_for_ready, +) @pytest.mark.skipif( - importlib.util.find_spec("seleniumbase") is None, reason="seleniumbase is not available" + importlib.util.find_spec("seleniumbase") is None, + reason="seleniumbase is not available", ) def test_dashboard(): """ @@ -72,7 +77,7 @@ def test_dashboard(): sb.click("#Run_route") sb.sleep(1) sb.click("#run_simulation_button") - sb.sleep(7) # for simulation to finish + sb.sleep(7) # for simulation to finish # Interact with phase space projection plots sb.click("#Analyze_route") diff --git a/tests/python/dashboard/util.py b/tests/python/dashboard/util.py index 77488337f..fb30a8772 100644 --- a/tests/python/dashboard/util.py +++ b/tests/python/dashboard/util.py @@ -29,6 +29,7 @@ def wait_for_dashboard_ready(process, timeout=60): return raise Exception("Dashboard did not start correctly.") + def set_input_value(sb, element_id, value): """ Function to clear, update, and trigger a change event on an input field by ID. @@ -56,5 +57,5 @@ def start_dashboard(): cwd=working_directory, stdout=subprocess.PIPE, stderr=subprocess.PIPE, - universal_newlines=True + universal_newlines=True, )