Skip to content

Commit

Permalink
fixed error types to be raised with float and bool in Test_check_test
Browse files Browse the repository at this point in the history
  • Loading branch information
milcent committed Dec 1, 2020
1 parent ab7d65b commit 26585a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ def test_not_in_rev_digs(self):
ch._check_test_('F4D')

def test_float(self):
with pytest.raises(TypeError) as context:
with pytest.raises(ValueError) as context:
ch._check_test_(2.0)
ch._check_test_(-3)

def test_bool(self):
with pytest.raises(ValueError) as context:
ch._check_test_(False)
with pytest.raises(TypeError) as context:
with pytest.raises(ValueError) as context:
ch._check_test_(None)


Expand Down

0 comments on commit 26585a5

Please sign in to comment.