summaryrefslogtreecommitdiff
path: root/oslo_db/tests/sqlalchemy/base.py
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2023-04-17 11:11:39 +0000
committerGerrit Code Review <review@openstack.org>2023-04-17 11:11:39 +0000
commitc3305cb282de8a7686a648a24a9fe3b6cd5d999c (patch)
tree6921dfcbb7b4d66d70695d61c554b02b2d03cd6b /oslo_db/tests/sqlalchemy/base.py
parent481936a822425c6a8c806409c8c877eed6661a2c (diff)
parenta609333c5482228ee69baab91858e1812909cd55 (diff)
downloadoslo-db-c3305cb282de8a7686a648a24a9fe3b6cd5d999c.tar.gz
Merge "Remove legacy base test classes"
Diffstat (limited to 'oslo_db/tests/sqlalchemy/base.py')
-rw-r--r--oslo_db/tests/sqlalchemy/base.py31
1 files changed, 0 insertions, 31 deletions
diff --git a/oslo_db/tests/sqlalchemy/base.py b/oslo_db/tests/sqlalchemy/base.py
index 80d9812..c66618a 100644
--- a/oslo_db/tests/sqlalchemy/base.py
+++ b/oslo_db/tests/sqlalchemy/base.py
@@ -13,8 +13,6 @@
# License for the specific language governing permissions and limitations
# under the License.
-import debtcollector
-
from oslo_db.sqlalchemy import enginefacade
from oslo_db.sqlalchemy.test_base import backend_specific # noqa
from oslo_db.sqlalchemy import test_fixtures as db_fixtures
@@ -29,35 +27,6 @@ class Context(object):
context = Context()
-@debtcollector.removals.removed_class(
- "DbTestCase",
- message="Do not import from oslo_db.tests! "
- "Please use oslo_db.sqlalchemy.test_fixtures directly")
-class DbTestCase(db_fixtures.OpportunisticDBTestMixin, test_base.BaseTestCase):
-
- def setUp(self):
- super(DbTestCase, self).setUp()
-
- self.engine = enginefacade.writer.get_engine()
- self.sessionmaker = enginefacade.writer.get_sessionmaker()
-
-
-@debtcollector.removals.removed_class(
- "MySQLOpportunisticTestCase",
- message="Do not import from oslo_db.tests! "
- "Please use oslo_db.sqlalchemy.test_fixtures directly")
-class MySQLOpportunisticTestCase(DbTestCase):
- FIXTURE = db_fixtures.MySQLOpportunisticFixture
-
-
-@debtcollector.removals.removed_class(
- "PostgreSQLOpportunisticTestCase",
- message="Do not import from oslo_db.tests! "
- "Please use oslo_db.sqlalchemy.test_fixtures directly")
-class PostgreSQLOpportunisticTestCase(DbTestCase):
- FIXTURE = db_fixtures.PostgresqlOpportunisticFixture
-
-
# NOTE (zzzeek) These test classes are **private to oslo.db**. Please
# make use of oslo_db.sqlalchemy.test_fixtures directly.