This commit is contained in:
@@ -9,18 +9,14 @@ def test_check_trinary_valid_values():
|
||||
assert check_trinary(True) is None
|
||||
assert check_trinary(False) is None
|
||||
assert check_trinary(None) is None
|
||||
assert check_trinary(0) is None
|
||||
assert check_trinary(1) is None
|
||||
|
||||
def test_check_trinary_invalid_value():
|
||||
# These values are not allowed and should raise ValueError
|
||||
with pytest.raises(ValueError, match=r"Trinary .+ not in"):
|
||||
check_trinary("yes")
|
||||
|
||||
with pytest.raises(ValueError):
|
||||
check_trinary(0)
|
||||
|
||||
with pytest.raises(ValueError):
|
||||
check_trinary(1)
|
||||
|
||||
with pytest.raises(ValueError):
|
||||
check_trinary([])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user