engine.dialect._unwrap_connection = engines.unwrap_connection
metadata = MetaData(engine)
- @profiling.function_call_count(3178, {'2.4': 1796})
+ @profiling.function_call_count(3178, {'2.4': 1913})
def test_profile_1_create_tables(self):
self.test_baseline_1_create_tables()
def test_profile_3_properties(self):
self.test_baseline_3_properties()
- @profiling.function_call_count(13341, {'2.4': 8434})
+ @profiling.function_call_count(13341, {'2.4': 7963})
def test_profile_4_expressions(self):
self.test_baseline_4_expressions()
- @profiling.function_call_count(1241, {'2.4': 901})
+ @profiling.function_call_count(1241, {'2.4': 854})
def test_profile_5_aggregates(self):
self.test_baseline_5_aggregates()
def test_profile_6_editing(self):
self.test_baseline_6_editing()
- @profiling.function_call_count(2641, {'2.4': 1844})
+ @profiling.function_call_count(2641, {'2.4': 1673})
def test_profile_7_multiview(self):
self.test_baseline_7_multiview()
'sqlalchemy.echo':'true'
}
- e = engine_from_config(config, module=dbapi)
+ 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
assert e.pool._recycle == 50
# these args work for QueuePool
- e = create_engine('postgresql://', max_overflow=8, pool_timeout=60, poolclass=tsa.pool.QueuePool, module=mock_dbapi)
+ e = create_engine('postgresql://',
+ max_overflow=8, pool_timeout=60,
+ poolclass=tsa.pool.QueuePool, module=mock_dbapi,
+ _initialize=False)
# but not SingletonThreadPool
assert_raises(TypeError, create_engine, 'sqlite://', max_overflow=8, pool_timeout=60,
- poolclass=tsa.pool.SingletonThreadPool, module=mock_sqlite_dbapi)
+ poolclass=tsa.pool.SingletonThreadPool, module=mock_sqlite_dbapi,
+ _initialize=False)
class MockDBAPI(object):
def __init__(self, **kwargs):
(
('postgresql','psycopg2'),
('postgresql','pg8000'),
- ('postgresql','zxjdbc'),
- ('mysql','zxjdbc'),
+ #('postgresql','zxjdbc'), # really ? why not pg
+ ('mysql','zxjdbc'), # but then yes for Mysql ?
('sqlite','pysqlite'),
))