Beispiel #1
0
 def setUp(self):
     self.migration_config = {
         'alembic_ini_path': '.',
         'db_url': 'sqlite://'
     }
     self.alembic = ext_alembic.AlembicExtension(self.migration_config)
     super(TestAlembicExtension, self).setUp()
Beispiel #2
0
 def test_check_enabled_false(self, command):
     """Verifies enabled returns False on empty
     alembic_ini_path variable
     """
     self.migration_config['alembic_ini_path'] = ''
     alembic = ext_alembic.AlembicExtension(self.migration_config)
     self.assertFalse(alembic.enabled)
 def setUp(self):
     self.migration_config = {
         'alembic_ini_path': '.',
         'db_url': 'sqlite://'
     }
     self.engine = sqlalchemy.create_engine(self.migration_config['db_url'])
     self.alembic = ext_alembic.AlembicExtension(self.engine,
                                                 self.migration_config)
     super(TestAlembicExtension, self).setUp()