

def test_pool_reset_on_return_from_config(self):
    dbapi = mock_dbapi
    for (value, expected) in [('rollback', pool.reset_rollback), ('commit', pool.reset_commit), ('none', pool.reset_none)]:
        config = {
            'sqlalchemy.url': 'postgresql://scott:tiger@somehost/test',
            'sqlalchemy.pool_reset_on_return': value,
        }
        e = engine_from_config(config, module=dbapi, _initialize=False)
        eq_(e.pool._reset_on_return, expected)

dataset/ETHPy150Open zzzeek/sqlalchemy/test/engine/test_parseconnect.py CreateEngineTest.test_pool_reset_on_return_from_config/original