Merge "Support the latest alembic"

This commit is contained in:
Zuul 2019-01-25 16:13:51 +00:00 committed by Gerrit Code Review
commit 45a49bc926
2 changed files with 5 additions and 8 deletions

View File

@ -218,13 +218,10 @@ class MigrationTestCase(rtest.DBTestCase,
# run migration scripts
self.db_sync(self.get_engine())
diff = self._get_metadata_diff()
self.assertEqual(1, len(diff))
action, object = diff[0]
self.assertEqual("remove_table", action)
self.assertIsInstance(object, sa.Table)
self.assertEqual("tags", object.name)
for action, object in self._get_metadata_diff():
if action == "remove_table":
self.assertIsInstance(object, sa.Table)
self.assertEqual("tags", object.name)
class MigrationWalkTestCase(rtest.DBTestCase,

View File

@ -1,4 +1,4 @@
alembic==0.9.7
alembic==1.0.6
asn1crypto==0.24.0
Babel==2.5.3
bcrypt==3.1.4