diff --git a/apps/cic-ussd/tests/fixtures/accounts.py b/apps/cic-ussd/tests/fixtures/accounts.py index d99b20c0..281ca84f 100644 --- a/apps/cic-ussd/tests/fixtures/accounts.py +++ b/apps/cic-ussd/tests/fixtures/accounts.py @@ -6,7 +6,7 @@ import pytest # local imports # test imports -from tests.helpers.accounts import phone_number, session_id +from tests.helpers.accounts import given_name, family_name, phone_number, session_id @pytest.fixture(scope='function') @@ -39,6 +39,36 @@ def second_metadata_entry_session_id() -> str: return session_id() +@pytest.fixture(scope='session') +def first_transaction_session_id() -> str: + return session_id() + + +@pytest.fixture(scope='session') +def second_transaction_session_id() -> str: + return session_id() + + +@pytest.fixture(scope='session') +def first_account_given_name() -> str: + return given_name() + + +@pytest.fixture(scope='session') +def second_account_given_name() -> str: + return given_name() + + +@pytest.fixture(scope='session') +def first_account_family_name() -> str: + return family_name() + + +@pytest.fixture(scope='session') +def second_account_family_name() -> str: + return family_name() + + @pytest.fixture(scope='session') def gift_value(load_config): return load_config.get('TEST_GIFT_VALUE') diff --git a/apps/cic-ussd/tests/helpers/accounts.py b/apps/cic-ussd/tests/helpers/accounts.py index 6788844d..4ef92324 100644 --- a/apps/cic-ussd/tests/helpers/accounts.py +++ b/apps/cic-ussd/tests/helpers/accounts.py @@ -19,3 +19,11 @@ def phone_number() -> str: def session_id() -> str: return uuid.uuid4().hex + + +def given_name() -> str: + return fake.first_name() + + +def family_name() -> str: + return fake.last_name()