module documentation

Undocumented

Variable testing​_reaper Undocumented
Class ​Connection​Killer Undocumented
Class ​DBAPIProxy​Connection Proxy a DBAPI connection.
Class ​DBAPIProxy​Cursor Proxy a DBAPI cursor.
Class ​Reconnect​Fixture Undocumented
Function all​_dialects Undocumented
Function assert​_conns​_closed Undocumented
Function close​_first Decorator that closes all connections before fn execution.
Function close​_open​_connections Decorator that closes all connections after fn execution.
Function mock​_engine Provides a mocking engine based on the current testing.db.
Function proxying​_engine Produce an engine that provides proxy hooks for common methods.
Function reconnecting​_engine Undocumented
Function rollback​_open​_connections Decorator that rolls back all open connections after fn execution.
Function testing​_engine Produce an engine configured by --options with optional overrides.
testing_reaper =

Undocumented

def all_dialects(exclude=None):

Undocumented

@decorator
def assert_conns_closed(fn, *args, **kw):

Undocumented

@decorator
def close_first(fn, *args, **kw):
Decorator that closes all connections before fn execution.
@decorator
def close_open_connections(fn, *args, **kw):
Decorator that closes all connections after fn execution.
def mock_engine(dialect_name=None):

Provides a mocking engine based on the current testing.db.

This is normally used to test DDL generation flow as emitted by an Engine.

It should not be used in other cases, as assert_compile() and assert_sql_execution() are much better choices with fewer moving parts.

def proxying_engine(conn_cls=DBAPIProxyConnection, cursor_cls=DBAPIProxyCursor):
Produce an engine that provides proxy hooks for common methods.
def reconnecting_engine(url=None, options=None):

Undocumented

@decorator
def rollback_open_connections(fn, *args, **kw):
Decorator that rolls back all open connections after fn execution.
def testing_engine(url=None, options=None, future=None, asyncio=False, transfer_staticpool=False):
Produce an engine configured by --options with optional overrides.