From 8a087de580b0a5694dd56bddfa01ea5815e307cc Mon Sep 17 00:00:00 2001 From: George Dang <53052793+gtdang@users.noreply.github.com> Date: Tue, 30 Apr 2024 12:07:39 -0400 Subject: [PATCH] tests: update tests for read and write configurations --- hnn_core/tests/test_io.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hnn_core/tests/test_io.py b/hnn_core/tests/test_io.py index 7de2ed84c3..3b69aa02b9 100644 --- a/hnn_core/tests/test_io.py +++ b/hnn_core/tests/test_io.py @@ -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 + # Without simulation there should be 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) @@ -207,9 +207,9 @@ def test_cell_response_to_dict(jones_2009_network): result2 = _cell_response_to_dict(net, write_output=True) assert bool(result2) and isinstance(result2, dict) - # Check for None if kw supplied + # Check for empty dict 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):