Switch to MySQLOpportunisticFixture from test_fixtures

MySQLOpportunisticTestCase was removed in oslo.db 13.0.0[1] and the
MySQLOpportunisticFixture should instead be used.

Also fixed bindep so that it works in Debian 12.

[1] a609333c5482228ee69baab91858e1812909cd55

Closes-Bug: #2038473
Change-Id: I56f7e055876204940bc65cc6309c3481b22c1c6c
This commit is contained in:
Corey Bryant 2023-10-04 15:13:58 -04:00 committed by hwang
parent 51350eabbe
commit 7b4c359f92
1 changed files with 3 additions and 1 deletions

View File

@ -30,6 +30,7 @@ postgres=# create database openstack_citest with owner openstack_citest;
"""
from oslo_db.sqlalchemy import test_fixtures
from oslo_db.sqlalchemy import utils as db_utils
from zaqar.tests.unit.storage.sqlalchemy_migration import \
@ -167,5 +168,6 @@ class ZaqarMigrationsCheckers(object):
class TestMigrationsMySQL(ZaqarMigrationsCheckers,
base.BaseWalkMigrationTestCase):
base.BaseWalkMigrationTestCase,
test_fixtures.MySQLOpportunisticFixture):
pass