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
Exemple #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
 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
 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
Exemple #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)