event.remove(engine, 'before_cursor_execute', self._before_cursor_execute)

def _before_cusor_execute(self, conn, cursor, statement, parameters,
    context, executemany):
    pass
Prevent touching db during unit testing with SQLAlchemy