From 7c9c6af5eacc383215d7e76ccf8d56aff96eb8f9 Mon Sep 17 00:00:00 2001 From: Camilo Diaz Date: Thu, 25 Jul 2024 16:01:56 -0400 Subject: [PATCH] MAINT: Adding comments to test code --- hnn_core/tests/test_gui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hnn_core/tests/test_gui.py b/hnn_core/tests/test_gui.py index 58eb63220..19079ea9c 100644 --- a/hnn_core/tests/test_gui.py +++ b/hnn_core/tests/test_gui.py @@ -750,7 +750,7 @@ def test_fig_tabs_dropdown_lists(setup_gui): gui.widget_ntrials.value = 1 - # Initiate 1rs simulation + # Initiate 1st simulation sim_name = "sim1" gui.widget_simulation_name.value = sim_name @@ -770,9 +770,12 @@ def test_fig_tabs_dropdown_lists(setup_gui): for ax_control in controls.children: assert ax_control.children[1].description == "Simulation Data:" sim_names = ax_control.children[1].options + # Check that dropdown has been updated with all simulation names assert all(sim in sim_names for sim in [sim_name, sim_name2]) assert ax_control.children[4].description == "Data to Compare:" + # Check the data to compare dropdown is enable for + # non "input histograms" plot type if ax_control.children[0].value != "input histogram": assert not ax_control.children[4].disabled