Skip to content

Commit

Permalink
Add faker library for generating fake data in SampleEntity class
Browse files Browse the repository at this point in the history
  • Loading branch information
Emerson Delatorre committed Feb 11, 2024
1 parent bb95a60 commit 512efd2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/mocks/entity/sample_entity.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module Sample Entity."""
from faker import Faker
from flunt.notifications.notification import Notification


Expand All @@ -7,10 +8,13 @@ class SampleEntity(Notification):

def __init__(self) -> None:
"""Found 'Constructor'."""
fake = Faker()
self.bool_false_property = False
self.bool_true_property = True
self.bool_none_property = None
self.email_valid = "any@any.com"
self.email_valid = fake.email()
self.email_invalid = "any"
self.first_name = "any_first_name"
self.last_name = "any_last_name"
self.credit_card_valid = fake.credit_card_number(card_type='amex')
self.credit_card_invalid = "1234567890123456"

0 comments on commit 512efd2

Please sign in to comment.