]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
fix dropping of version tables in test
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 6 Oct 2025 20:34:35 +0000 (16:34 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 6 Oct 2025 20:34:35 +0000 (16:34 -0400)
Change-Id: I438fbe6ac41d0b4e5997fd1a7455cf4127aa1e19

tests/test_version_table.py

index ca5693665ce1994a047ff7cb331d0463148fd51c..8964022c062cd3febf354a73448c150152a57ada 100644 (file)
@@ -23,6 +23,7 @@ version_table = Table(
     MetaData(),
     Column("version_num", String(32), nullable=False),
 )
+alembic_version_table = Table("alembic_version", MetaData())
 
 
 def _up(from_, to_, branch_presence_changed=False):
@@ -46,6 +47,7 @@ class TestMigrationContext(TestBase):
         self.transaction.rollback()
         with self.connection.begin():
             version_table.drop(self.connection, checkfirst=True)
+            alembic_version_table.drop(self.connection, checkfirst=True)
         self.connection.close()
 
     def make_one(self, **kwargs):