From 455d5b724fb8e13b6330aed94a59d4b4d1a1849a Mon Sep 17 00:00:00 2001 From: samadpls Date: Tue, 13 Aug 2024 17:26:32 +0500 Subject: [PATCH] Added record_isec vsec validation test Signed-off-by: samadpls --- hnn_core/tests/test_batch_simulate.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hnn_core/tests/test_batch_simulate.py b/hnn_core/tests/test_batch_simulate.py index c0df84771..4604ade32 100644 --- a/hnn_core/tests/test_batch_simulate.py +++ b/hnn_core/tests/test_batch_simulate.py @@ -82,6 +82,12 @@ def test_parameter_validation(): with pytest.raises(TypeError, match="net_json must be"): BatchSimulate(net_json=123, set_params=lambda x: x) + with pytest.raises(ValueError, match="'record_vsec' parameter"): + BatchSimulate(set_params=lambda x: x, record_vsec="invalid") + + with pytest.raises(ValueError, match="'record_isec' parameter"): + BatchSimulate(set_params=lambda x: x, record_isec="invalid") + def test_generate_param_combinations(batch_simulate_instance, param_grid): """Test generating parameter combinations."""