Skip to content

Commit

Permalink
tests: Fix test_cell_response_to_dict. Function returns empty dict in…
Browse files Browse the repository at this point in the history
…stead of None.
  • Loading branch information
gtdang committed May 6, 2024
1 parent 4845c81 commit 94a8914
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hnn_core/tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ def test_cell_response_to_dict(jones_2009_network):
""" Tests _cell_response_to_dict function """
net = jones_2009_network

# No simulation so should have None for cell response
# When a simulation hasn't been run, return an empty dict
result1 = _cell_response_to_dict(net, write_output=True)
assert result1 is None
assert result1 == dict()

# Check for cell response dictionary after a simulation
simulate_dipole(net, tstop=2, n_trials=1, dt=0.5)
Expand All @@ -209,7 +209,7 @@ def test_cell_response_to_dict(jones_2009_network):

# Check for None if kw supplied
result3 = _cell_response_to_dict(net, write_output=False)
assert result3 is None
assert result3 == dict()


def test_rec_array_to_dict(jones_2009_network):
Expand Down

0 comments on commit 94a8914

Please sign in to comment.