#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# self . migration_config = { #NEWLINE# #INDENT# 'alembic_ini_path' : '.' , #NEWLINE# 'migrate_repo_path' : '.' , #NEWLINE# 'db_url' : 'sqlite://' , #NEWLINE# #UNINDENT# } #NEWLINE# engine = sqlalchemy . create_engine ( self . migration_config [ 'db_url' ] ) #NEWLINE# self . migration_manager = manager . MigrationManager ( engine . migration_config , engine ) #NEWLINE# self . ext = mock . Mock ( ) #NEWLINE# self . ext . obj . version = mock . Mock ( return_value = 0 ) #NEWLINE# self . migration_manager . _manager . extensions = [ self . ext ] #NEWLINE# super ( TestMigrationManager , self ) . setUp ( )