@pytest.fixture(scope='session')
def user_config_data(user_dir):
 cookiecutters_dir = user_dir.mkdir('cookiecutters')
 replay_dir = user_dir.mkdir('cookiecutter_replay')
 return {'cookiecutters_dir': str(cookiecutters_dir), 'replay_dir': str(replay_dir)}

@ pytest . fixture ( scope = 'session' ) def user_config_data ( user_dir ) : cookiecutters_dir = user_dir . mkdir ( 'cookiecutters' ) replay_dir = user_dir . mkdir ( 'cookiecutter_replay' ) return { 'cookiecutters_dir' : str ( cookiecutters_dir ) , 'replay_dir' : str ( replay_dir ) }
fixture that creates 2 cookiecutter user config dirs in the users home directory: * cookiecutters_dir * cookiecutter_replay :returns: dict with name of both user config dirs .