Skip to content

Commit

Permalink
update test_gui_add_dries to reflect the capitalization of the drive …
Browse files Browse the repository at this point in the history
…location dropdown box
  • Loading branch information
dylansdaniels committed Nov 26, 2024
1 parent 9bf60c2 commit 1921e9b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hnn_core/tests/test_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def test_gui_add_drives():
_ = gui.compose()

for val_drive_type in ("Poisson", "Evoked", "Rhythmic"):
for val_location in ("distal", "proximal"):
for val_location in ("Distal", "Proximal"):
gui.delete_drive_button.click()
assert len(gui.drive_widgets) == 0

Expand All @@ -334,7 +334,9 @@ def test_gui_add_drives():

assert len(gui.drive_widgets) == 1
assert gui.drive_widgets[0]['type'] == val_drive_type
assert gui.drive_widgets[0]['location'] == val_location
# note that val_location is transformed to .lower() after the
# add_drive_button.click() action
assert gui.drive_widgets[0]['location'] == val_location.lower()
assert val_drive_type in gui.drive_widgets[0]['name']
plt.close('all')

Expand Down

0 comments on commit 1921e9b

Please sign in to comment.