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:
parent
fd742c176b
commit
9b47bcca9d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue