Exemplo n.º 1
0
 def tearDown(self):
     super(TestInitializeDBCommand, self).tearDown()
     Base.metadata.drop_all()
     # drop the alembic_version table
     try:
         version_table.drop(self.engine)
     except OperationalError:  # pragma: no cover
         pass
Exemplo n.º 2
0
 def tearDown(self):
     super(ModelMigrationTests, self).tearDown()
     Base.metadata.drop_all()
     # drop the alembic_version table
     try:
         version_table.drop(self.engine)
     except OperationalError:  # pragma: no cover
         pass
Exemplo n.º 3
0
 def tearDown(self):
     super(TestInitializeDBCommand, self).tearDown()
     Base.metadata.drop_all()
     # drop the alembic_version table
     try:
         version_table.drop(self.engine)
     except OperationalError:  # pragma: no cover
         pass
Exemplo n.º 4
0
 def setUp(self):
     super(AlembicUtilsTests, self).setUp()
     Base.metadata.drop_all()
     # drop the alembic_version table
     try:
         version_table.drop(self.engine)
     except OperationalError:  # pragma: no cover
         pass
Exemplo n.º 5
0
 def setUp(self):
     super(ModelMigrationTests, self).setUp()
     Base.metadata.drop_all()
     # drop the alembic_version table
     try:
         version_table.drop(self.engine)
     except OperationalError:  # pragma: no cover
         pass
     # create an alembic table fixture
     version_table.create(self.engine)
     with transaction.manager:
         alembic_version = Migration()
         alembic_version.version_num = 'revid'
     self.DBSession.add(alembic_version)