diff options
author | Stephen Finucane <stephenfin@redhat.com> | 2021-08-16 13:07:19 +0100 |
---|---|---|
committer | Stephen Finucane <stephenfin@redhat.com> | 2022-02-08 14:40:36 +0000 |
commit | 22c602f075795b6d5ecbbc2e229817f759613ea2 (patch) | |
tree | f71f037ae93e45939c39527d27ed276ab00631f8 /oslo_db/sqlalchemy/test_fixtures.py | |
parent | f756a195674f29f4b55b21914263d1ffbbe3b07b (diff) | |
download | oslo-db-22c602f075795b6d5ecbbc2e229817f759613ea2.tar.gz |
utils: Remove troublesome utility methods11.2.0
These are not compatible with SQLAlchemy 2.0 due to their reliance on
nested transactions. We should deprecate them first but doing so would
push the boat out further wrt how long we have to wait before achieving
compatibility with this new version.
Change-Id: If3db4e8c1b681c0c62d3f04a57f92802639b3b9b
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Diffstat (limited to 'oslo_db/sqlalchemy/test_fixtures.py')
-rw-r--r-- | oslo_db/sqlalchemy/test_fixtures.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/oslo_db/sqlalchemy/test_fixtures.py b/oslo_db/sqlalchemy/test_fixtures.py index 6b82f05..8b69d3f 100644 --- a/oslo_db/sqlalchemy/test_fixtures.py +++ b/oslo_db/sqlalchemy/test_fixtures.py @@ -254,22 +254,6 @@ class DeletesFromSchema(ResetsData): """ -class RollsBackTransaction(ResetsData): - """Fixture class that maintains a database transaction per test. - - """ - - def setup_for_reset(self, engine, facade): - conn = engine.connect() - engine = utils.NonCommittingEngine(conn) - self._reset_engine = enginefacade._TestTransactionFactory.apply_engine( - engine, facade) - - def reset_schema_data(self, engine, facade): - self._reset_engine() - engine._dispose() - - class SimpleDbFixture(BaseDbFixture): """Fixture which provides an engine from a fixed URL. |