From 7b4c359f925dfad8970d9f814182fd878cf3ab48 Mon Sep 17 00:00:00 2001 From: Corey Bryant Date: Wed, 4 Oct 2023 15:13:58 -0400 Subject: [PATCH] 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 --- .../unit/storage/sqlalchemy_migration/test_migrations.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zaqar/tests/unit/storage/sqlalchemy_migration/test_migrations.py b/zaqar/tests/unit/storage/sqlalchemy_migration/test_migrations.py index cf315189d..7648f5e92 100644 --- a/zaqar/tests/unit/storage/sqlalchemy_migration/test_migrations.py +++ b/zaqar/tests/unit/storage/sqlalchemy_migration/test_migrations.py @@ -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