From a17da7b91b87558974b1f143657b43e1e1fc94b2 Mon Sep 17 00:00:00 2001 From: PhilipWafula Date: Fri, 14 May 2021 10:27:20 +0300 Subject: [PATCH] Adds accounts fixtures. --- apps/cic-ussd/tests/fixtures/accounts.py | 39 ++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 apps/cic-ussd/tests/fixtures/accounts.py diff --git a/apps/cic-ussd/tests/fixtures/accounts.py b/apps/cic-ussd/tests/fixtures/accounts.py new file mode 100644 index 00000000..edec6294 --- /dev/null +++ b/apps/cic-ussd/tests/fixtures/accounts.py @@ -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()