Skip to content

Commit

Permalink
Update test_seir.py
Browse files Browse the repository at this point in the history
  • Loading branch information
emprzy committed Jan 6, 2025
1 parent 1b841c6 commit 34fdc1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flepimop/gempyor_pkg/tests/seir/test_seir.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ def test_check_parameter_positivity():
test_array3[randint_first_dim][randint_second_dim][randint_third_dim] = -1
test_array3[randint_first_dim][randint_second_dim+1][randint_third_dim] = -1

seir.neg_params(test_array1, parameter_names, dates, subpop_names) # NoError
seir.check_parameter_positivity(test_array1, parameter_names, dates, subpop_names) # NoError

with pytest.raises(ValueError):
assert seir.neg_params(test_array2, parameter_names, dates, subpop_names) # ValueError
assert seir.neg_params(test_array3, parameter_names, dates, subpop_names) # ValueError
assert seir.check_parameter_positivity(test_array2, parameter_names, dates, subpop_names) # ValueError
assert seir.check_parameter_positivity(test_array3, parameter_names, dates, subpop_names) # ValueError


def test_check_values():
Expand Down

0 comments on commit 34fdc1e

Please sign in to comment.