Adds accounts fixtures.
This commit is contained in:
parent
c8adfb7f19
commit
a17da7b91b
39
apps/cic-ussd/tests/fixtures/accounts.py
vendored
Normal file
39
apps/cic-ussd/tests/fixtures/accounts.py
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
# standard imports
|
||||||
|
|
||||||
|
# external imports
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
# local imports
|
||||||
|
|
||||||
|
# test imports
|
||||||
|
from tests.helpers.accounts import phone_number, session_id
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(scope='function')
|
||||||
|
def generate_phone_number() -> str:
|
||||||
|
return phone_number()
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(scope='function')
|
||||||
|
def generate_session_id() -> str:
|
||||||
|
return session_id()
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(scope='session')
|
||||||
|
def first_account_phone_number() -> str:
|
||||||
|
return phone_number()
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(scope='session')
|
||||||
|
def second_account_phone_number() -> str:
|
||||||
|
return phone_number()
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(scope='session')
|
||||||
|
def first_metadata_entry_session_id() -> str:
|
||||||
|
return session_id()
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(scope='session')
|
||||||
|
def second_metadata_entry_session_id() -> str:
|
||||||
|
return session_id()
|
Loading…
Reference in New Issue
Block a user