@pytest.mark.usefixtures('back_up_rc')
def test_get_user_config_valid(user_config_path, custom_config):
 shutil.copy('tests/test-config/valid-config.yaml', user_config_path)
 conf = config.get_user_config()
 assert (conf == custom_config)

@ pytest . mark . usefixtures ( 'back_up_rc' ) def test_get_user_config_valid ( user_config_path , custom_config ) : shutil . copy ( 'tests/test-config/valid-config.yaml' , user_config_path ) conf = config . get_user_config ( ) assert ( conf == custom_config )
get config from a valid ~/ .