Refactors fixtures to management tests.

This commit is contained in:
PhilipWafula 2021-06-02 07:42:00 +03:00
parent c90f1c59ec
commit 25e4aaf9f6
Signed by untrusted user: mango-habanero
GPG Key ID: B00CE9034DA19FB7

View File

@ -96,12 +96,12 @@ def second_account_location() -> str:
@pytest.fixture(scope='session') @pytest.fixture(scope='session')
def first_account_product() -> str: def first_account_product() -> str:
return fake.job() return fake.color_name()
@pytest.fixture(scope='session') @pytest.fixture(scope='session')
def second_account_product() -> str: def second_account_product() -> str:
return fake.job() return fake.color_name()
@pytest.fixture(scope='session') @pytest.fixture(scope='session')
@ -156,12 +156,12 @@ def second_account_change_location() -> str:
@pytest.fixture(scope='session') @pytest.fixture(scope='session')
def first_account_change_product() -> str: def first_account_change_product() -> str:
return fake.job() return fake.color_name()
@pytest.fixture(scope='session') @pytest.fixture(scope='session')
def second_account_change_product() -> str: def second_account_change_product() -> str:
return fake.job() return fake.color_name()
@pytest.fixture(scope='session') @pytest.fixture(scope='session')
@ -174,6 +174,36 @@ def second_account_management_session_id_1() -> str:
return session_id() 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') @pytest.fixture(scope='session')
def gift_value(load_config): def gift_value(load_config):
return load_config.get('TEST_GIFT_VALUE') return load_config.get('TEST_GIFT_VALUE')