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 <abdulsamadsid1@gmail.com>
  • Loading branch information
samadpls committed Aug 13, 2024
1 parent c3eeade commit 455d5b7
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="'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."""
Expand Down

0 comments on commit 455d5b7

Please sign in to comment.