Skip to content

Commit

Permalink
Added record_isec vsec validation test
Browse files Browse the repository at this point in the history
Signed-off-by: samadpls <[email protected]>
  • Loading branch information
samadpls committed Aug 13, 2024
1 parent c3eeade commit 719b17f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hnn_core/tests/test_batch_simulate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=f"'record_vsec' parameter"):
BatchSimulate(set_params=lambda x: x, record_vsec="invalid")

with pytest.raises(ValueError, match=f"'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."""
Expand Down

0 comments on commit 719b17f

Please sign in to comment.