@pytest.fixture(scope='session')
def workspace(request) -> Workspace:
    ' Workspace Factory Fixture.\n\n    Yields:\n        directory(Workspace): Workspace Created.\n\n    '
    logger.debug('Setup of test structure.')
    if request.config.getoption('workspace'):
        result_dir = request.config.getoption('workspace')
    else:
        if (not os.path.exists('result')):
            logger.debug('Creating results folder to store results')
            os.mkdir('result')
        result_dir = os.path.join(os.getcwd(), 'result')
    logger.debug('Created folder %s', result_dir)
    (yield Workspace(result_dir))
Workspace Factory Fixture.

Yields:
    directory(Workspace): Workspace Created.
@pytest.fixture(scope='session')
def workspace(request) -> Workspace:
    ' Workspace Factory Fixture.\n\n    Yields:\n        directory(Workspace): Workspace Created.\n\n    '
    logger.debug('Setup of test structure.')
    if request.config.getoption('workspace'):
        result_dir = request.config.getoption('workspace')
    else:
        if (not os.path.exists('result')):
            logger.debug('Creating results folder to store results')
            os.mkdir('result')
        result_dir = os.path.join(os.getcwd(), 'result')
    logger.debug('Created folder %s', result_dir)
    (yield Workspace(result_dir))