From f35e7010baa9fd89b409b8c61ff8775653fc4cc1 Mon Sep 17 00:00:00 2001 From: PhilipWafula Date: Thu, 27 May 2021 19:06:11 +0300 Subject: [PATCH] Adds management testing fixtures. --- apps/cic-ussd/tests/fixtures/integration.py | 40 +++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/apps/cic-ussd/tests/fixtures/integration.py b/apps/cic-ussd/tests/fixtures/integration.py index d787cee0..6e37769a 100644 --- a/apps/cic-ussd/tests/fixtures/integration.py +++ b/apps/cic-ussd/tests/fixtures/integration.py @@ -124,6 +124,46 @@ def second_account_management_session_id() -> str: return session_id() +@pytest.fixture(scope='session') +def first_account_change_given_name() -> str: + return fake.first_name() + + +@pytest.fixture(scope='session') +def second_account_change_given_name() -> str: + return fake.first_name() + + +@pytest.fixture(scope='session') +def first_account_change_family_name() -> str: + return fake.last_name() + + +@pytest.fixture(scope='session') +def second_account_change_family_name() -> str: + return fake.last_name() + + +@pytest.fixture(scope='session') +def first_account_change_location() -> str: + return fake.city() + + +@pytest.fixture(scope='session') +def second_account_change_location() -> str: + return fake.city() + + +@pytest.fixture(scope='session') +def first_account_product() -> str: + return fake.job() + + +@pytest.fixture(scope='session') +def second_account_change_product() -> str: + return fake.job() + + @pytest.fixture(scope='session') def gift_value(load_config): return load_config.get('TEST_GIFT_VALUE')