Skip to content

Commit

Permalink
tests: added has_data checks on figure axis
Browse files Browse the repository at this point in the history
  • Loading branch information
gtdang authored and ntolley committed Dec 11, 2023
1 parent 17638ec commit 34d972c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hnn_core/tests/test_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,12 @@ def test_gui_add_figure():
gui.run_button.click()
assert len(fig_tabs.children) == 1
assert len(axes_config_tabs.children) == 1

assert gui.viz_manager.fig_idx['idx'] == 2

# Check default figs have data on their axis
assert gui.viz_manager.figs[1].axes[0].has_data()
assert gui.viz_manager.figs[1].axes[1].has_data()

for idx in range(3):
n_fig = idx + 2
gui.viz_manager.make_fig_button.click()
Expand Down

0 comments on commit 34d972c

Please sign in to comment.