Skip to content

Commit d7d5afa

Browse files
authored
Merge pull request #46 from Peyman-N/Adding-test-for-bool
adding bool to build_fake_node
2 parents cbc9e1b + c1a1deb commit d7d5afa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pipeline/tests/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ def build_fake_node(cls, depth=0):
5353
value = datetime.now()
5454
elif date in property.types:
5555
value = date.today()
56+
elif bool in property.types:
57+
value = random.choice([True, False])
5658
else:
5759
raise TypeError(f"unexpected type(s): {property.types}")
5860
return cls(**data)

0 commit comments

Comments
 (0)