Skip to content

Commit f2a7fcc

Browse files
committed
Add tests for to_bool() when passing boolean values
1 parent eff9274 commit f2a7fcc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_utils.py

+5
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,11 @@ def test_to_bool_str_invalid():
843843
cu.to_bool('other')
844844

845845

846+
def test_to_bool_bool():
847+
assert cu.to_bool(True)
848+
assert not cu.to_bool(False)
849+
850+
846851
def test_to_bool_int():
847852
assert cu.to_bool(1)
848853
assert cu.to_bool(-1)

0 commit comments

Comments
 (0)