From 25e4aaf9f66f8ebea85cd55f6d54e122c5a015e8 Mon Sep 17 00:00:00 2001 From: PhilipWafula Date: Wed, 2 Jun 2021 07:42:00 +0300 Subject: [PATCH] Refactors fixtures to management tests. --- apps/cic-ussd/tests/fixtures/integration.py | 38 ++++++++++++++++++--- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/apps/cic-ussd/tests/fixtures/integration.py b/apps/cic-ussd/tests/fixtures/integration.py index 8797bc73..df6c088d 100644 --- a/apps/cic-ussd/tests/fixtures/integration.py +++ b/apps/cic-ussd/tests/fixtures/integration.py @@ -96,12 +96,12 @@ def second_account_location() -> str: @pytest.fixture(scope='session') def first_account_product() -> str: - return fake.job() + return fake.color_name() @pytest.fixture(scope='session') def second_account_product() -> str: - return fake.job() + return fake.color_name() @pytest.fixture(scope='session') @@ -156,12 +156,12 @@ def second_account_change_location() -> str: @pytest.fixture(scope='session') def first_account_change_product() -> str: - return fake.job() + return fake.color_name() @pytest.fixture(scope='session') def second_account_change_product() -> str: - return fake.job() + return fake.color_name() @pytest.fixture(scope='session') @@ -174,6 +174,36 @@ def second_account_management_session_id_1() -> str: return session_id() +@pytest.fixture(scope='session') +def first_account_management_session_id_2() -> str: + return session_id() + + +@pytest.fixture(scope='session') +def second_account_management_session_id_2() -> str: + return session_id() + + +@pytest.fixture(scope='session') +def first_account_management_session_id_3() -> str: + return session_id() + + +@pytest.fixture(scope='session') +def second_account_management_session_id_3() -> str: + return session_id() + + +@pytest.fixture(scope='session') +def first_account_management_session_id_4() -> str: + return session_id() + + +@pytest.fixture(scope='session') +def second_account_management_session_id_4() -> str: + return session_id() + + @pytest.fixture(scope='session') def gift_value(load_config): return load_config.get('TEST_GIFT_VALUE')