Skip to content

Commit 0607ab8

Browse files
committed
Fixed bug in some boolean methods
not returning check_obj
1 parent 58e5ad6 commit 0607ab8

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

fluentcheck/assertions/booleans.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,29 +34,27 @@ def is_falsy(check_obj):
3434

3535

3636
def is_not_truthy(check_obj):
37-
check_obj.is_falsy()
37+
return check_obj.is_falsy()
3838

3939

4040
def is_not_falsy(check_obj):
41-
check_obj.is_truthy()
41+
return check_obj.is_truthy()
4242

4343

4444
def is_true(check_obj):
45-
check_obj.is_boolean()
46-
check_obj.is_truthy()
45+
return check_obj.is_truthy().is_boolean()
4746

4847

4948
def is_false(check_obj):
50-
check_obj.is_boolean()
51-
check_obj.is_falsy()
49+
return check_obj.is_falsy().is_boolean()
5250

5351

5452
def is_not_true(check_obj):
55-
check_obj.is_false()
53+
return check_obj.is_false()
5654

5755

5856
def is_not_false(check_obj):
59-
check_obj.is_true()
57+
return check_obj.is_true()
6058

6159

6260
def has_same_truth_of(check_obj, value):

0 commit comments

Comments
 (0)