Adds helper functions to for testing accounts.
This commit is contained in:
parent
a17da7b91b
commit
85837e1fec
21
apps/cic-ussd/tests/helpers/accounts.py
Normal file
21
apps/cic-ussd/tests/helpers/accounts.py
Normal file
@ -0,0 +1,21 @@
|
||||
# standard imports
|
||||
import uuid
|
||||
|
||||
# external imports
|
||||
from faker import Faker
|
||||
from faker_e164.providers import E164Provider
|
||||
|
||||
# local imports
|
||||
|
||||
# test imports
|
||||
|
||||
fake = Faker()
|
||||
fake.add_provider(E164Provider)
|
||||
|
||||
|
||||
def phone_number() -> str:
|
||||
return fake.e164('KE')
|
||||
|
||||
|
||||
def session_id() -> str:
|
||||
return uuid.uuid4().hex
|
Loading…
Reference in New Issue
Block a user