Skip to content

Commit

Permalink
test: updated test names and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gtdang authored and ntolley committed Aug 14, 2024
1 parent 4373d16 commit 61e9935
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions hnn_core/tests/test_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,8 +556,8 @@ def test_gui_synchronous_inputs(setup_gui):
# Check that the n_drive_cells is not disabled
assert not gui.drive_widgets[0]['n_drive_cells'].disabled

# set synch inputs to first driver in simulation
driver_name = gui.drive_widgets[0]['name']
# Get name of first drive
drive_name = gui.drive_widgets[0]['name']

# Loop by number of drive cells
for i, n_drive_cells in enumerate([1, 3]):
Expand All @@ -572,22 +572,22 @@ def test_gui_synchronous_inputs(setup_gui):
# Filter connections for specific driver_name first
network_connections = sim['net'].connectivity
driver_connections = [conn for conn in network_connections
if conn['src_type'] == driver_name]
if conn['src_type'] == drive_name]

# Check src_gids length
for connectivity in driver_connections:
assert len(connectivity['src_gids']) == n_drive_cells


def test_gui_all_to_all_drive(setup_gui):
"""Tests all-to-all connection with cell_specific widget"""
def test_gui_cell_specific_drive(setup_gui):
"""Tests 1:1 connection with cell_specific widget"""
gui = setup_gui
# Set cell_specific to False
gui.drive_widgets[0]['is_cell_specific'].value = True
# Assert that the n_drive_cells is disabled
assert gui.drive_widgets[0]['n_drive_cells'].disabled

# set synch inputs to first driver in simulation
# Get name of first drive
driver_name = gui.drive_widgets[0]['name']

# Run simulation
Expand Down

0 comments on commit 61e9935

Please sign in to comment.