diff options
author | Zuul <zuul@review.opendev.org> | 2021-11-12 12:20:42 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2021-11-12 12:20:42 +0000 |
commit | f5f21b06dfc73608bbcf6bc5939b7b2f7d6caf95 (patch) | |
tree | 7820cebf4bc963ae84752501cad4009f25afe23e | |
parent | 4f462148a4cb0e43393453b712a539ce2b0d2082 (diff) | |
parent | 8772fcc349226b152e8a04a8ed3e883231412043 (diff) | |
download | oslo-db-f5f21b06dfc73608bbcf6bc5939b7b2f7d6caf95.tar.gz |
Merge "Don't use the 'Row.keys()' method"
-rw-r--r-- | oslo_db/tests/fixtures.py | 5 | ||||
-rw-r--r-- | oslo_db/tests/sqlalchemy/test_update_match.py | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/oslo_db/tests/fixtures.py b/oslo_db/tests/fixtures.py index 7db7b78..20b8a38 100644 --- a/oslo_db/tests/fixtures.py +++ b/oslo_db/tests/fixtures.py @@ -59,11 +59,6 @@ class WarningsFixture(fixtures.Fixture): warnings.filterwarnings( 'once', - message=r'The Row.keys\(\) method is considered legacy .*', - category=sqla_exc.SADeprecationWarning) - - warnings.filterwarnings( - 'once', message=r'Retrieving row members using strings or other .*', category=sqla_exc.SADeprecationWarning) diff --git a/oslo_db/tests/sqlalchemy/test_update_match.py b/oslo_db/tests/sqlalchemy/test_update_match.py index fdd1887..b4c025b 100644 --- a/oslo_db/tests/sqlalchemy/test_update_match.py +++ b/oslo_db/tests/sqlalchemy/test_update_match.py @@ -122,7 +122,7 @@ class UpdateMatchTest(db_test_base._DbTestCase): sql.select(MyModel.__table__).where(MyModel.__table__.c.id == pk) ).first() values['id'] = pk - self.assertEqual(values, dict(row)) + self.assertEqual(values, dict(row._mapping)) def test_update_specimen_successful(self): uuid = '136254d5-3869-408f-9da7-190e0072641a' |