Skip to content

Commit

Permalink
Changed test according to probability code change
Browse files Browse the repository at this point in the history
  • Loading branch information
arindamsaha1507 committed Feb 23, 2024
1 parent cb4f6fd commit 0afab67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_utils.py
Expand Up @@ -24,12 +24,12 @@ def test_probability_with_mock(mock_random):
assert utils.probability(0.4) is False


def test_probability_raises_error():
def test_probability_raises_warning():
"""Test the probability function raises an error."""

with pytest.raises(ValueError):
with pytest.warns(UserWarning):
utils.probability(-0.1)
with pytest.raises(ValueError):
with pytest.warns(UserWarning):
utils.probability(1.1)


Expand Down

0 comments on commit 0afab67

Please sign in to comment.