Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenStack
oslo
python-oslo.db
Commits
f5f21b06
Commit
f5f21b06
authored
Nov 12, 2021
by
Zuul
Committed by
Gerrit Code Review
Nov 12, 2021
Browse files
Merge "Don't use the 'Row.keys()' method"
parents
4f462148
8772fcc3
Changes
2
Hide whitespace changes
Inline
Side-by-side
oslo_db/tests/fixtures.py
View file @
f5f21b06
...
...
@@ -57,11 +57,6 @@ class WarningsFixture(fixtures.Fixture):
message
=
r
'The Executable.execute\(\) method is considered .*'
,
category
=
sqla_exc
.
SADeprecationWarning
)
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 .*'
,
...
...
oslo_db/tests/sqlalchemy/test_update_match.py
View file @
f5f21b06
...
...
@@ -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'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment