From 4b7fdd72ee7a0be6acb03fbf291cda7f3dd2f92f Mon Sep 17 00:00:00 2001 From: George Dang <53052793+gtdang@users.noreply.github.com> Date: Thu, 27 Jun 2024 14:26:16 -0400 Subject: [PATCH] tests: Added connectivity length check --- hnn_core/tests/test_params.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hnn_core/tests/test_params.py b/hnn_core/tests/test_params.py index fcb53f1ec..e532bd009 100644 --- a/hnn_core/tests/test_params.py +++ b/hnn_core/tests/test_params.py @@ -159,6 +159,8 @@ def test_no_network_connectivity(self, tmp_path): model_template=None) net_json = read_network_configuration(outpath) assert net_json == net_params + # Should only have external drive connections defined, n=22 + assert len(net_json.connectivity) == len(net_params.connectivity) == 22 def test_convert_to_json_legacy(self, tmp_path): """Tests conversion of a param legacy file to json"""