tests: Add missing args to sqlalchemy.Table

This expects a name and metadata argument in 2.0. Add them.

Change-Id: Id9d9ac4a2302ab769be679a39e5a339a483faa16
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane 2023-04-17 16:56:10 +01:00
parent fd742c176b
commit 9b47bcca9d
1 changed files with 1 additions and 1 deletions

View File

@ -353,7 +353,7 @@ class TestBannedDBSchemaOperations(testtools.TestCase):
column.alter)
def test_table(self):
table = sa.Table()
table = sa.Table("foo", sa.MetaData())
with fixtures.BannedDBSchemaOperations(['Table']):
self.assertRaises(exception.DBNotAllowed,
table.drop)