

def test_engine_from_config(self):
    dbapi = mock_dbapi
    config = {
        'sqlalchemy.url': 'postgresql://scott:tiger@somehost/test?fooz=somevalue',
        'sqlalchemy.pool_recycle': '50',
        'sqlalchemy.echo': 'true',
    }
    e = engine_from_config(config, module=dbapi, _initialize=False)
    assert (e.pool._recycle == 50)
    assert (e.url == url.make_url('postgresql://scott:tiger@somehost/test?fooz=somevalue'))
    assert (e.echo is True)

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