2021-05-14 09:27:46 +02:00
|
|
|
# standard imports
|
2021-05-17 21:49:29 +02:00
|
|
|
import random
|
2021-05-14 09:27:46 +02:00
|
|
|
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
|
2021-05-17 15:00:06 +02:00
|
|
|
|
|
|
|
|
2021-05-17 21:49:29 +02:00
|
|
|
def pin_number() -> int:
|
|
|
|
return random.randint(1000, 9999)
|