Skip to content

Commit

Permalink
trying pytest.raises tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fcarvalhopacheco committed May 8, 2022
1 parent 5ef6c5a commit e89e45c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_make_whots_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ def test_construction_17(w17_1):
assert w17_1.system_number == 1


def test_bad_constructor():
with pytest.raises(ValueError):
DefineWhotsSystem(16, 4)


def test_construction_50():
w50_1 = DefineWhotsSystem(50, 1)
assert w50_1.whots_number == 50
Expand Down

0 comments on commit e89e45c

Please sign in to comment.