summaryrefslogtreecommitdiff
path: root/trove/tests/unittests/common/test_wsgi.py
diff options
context:
space:
mode:
authorTakashi Natsume <takanattie@gmail.com>2022-08-20 13:04:05 +0900
committerTakashi Natsume <takanattie@gmail.com>2022-10-15 12:42:46 +0000
commit8c94e21196756c0a799dfafb42cbcf4ad96109f6 (patch)
treedc495ef292b28fab380a2d86f657a10f8f344eb3 /trove/tests/unittests/common/test_wsgi.py
parent346e1612200563cdbeadc49186fd819dc6d4f950 (diff)
downloadtrove-8c94e21196756c0a799dfafb42cbcf4ad96109f6.tar.gz
Fix deprecation warnings
Fix the following deprecation warnings. * DeprecationWarning: Using the 'user' argument is deprecated in version '2.18' and will be removed in version '3.0', please use the 'user_id' argument instead * DeprecationWarning: Property 'user' has moved to 'user_id' in version '2.6' and will be removed in version '3.0' Change-Id: I18802ae1e2318eae3c62a26459178b259c728ac4 Signed-off-by: Takashi Natsume <takanattie@gmail.com>
Diffstat (limited to 'trove/tests/unittests/common/test_wsgi.py')
-rw-r--r--trove/tests/unittests/common/test_wsgi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/trove/tests/unittests/common/test_wsgi.py b/trove/tests/unittests/common/test_wsgi.py
index 324078da..9297fed6 100644
--- a/trove/tests/unittests/common/test_wsgi.py
+++ b/trove/tests/unittests/common/test_wsgi.py
@@ -42,7 +42,7 @@ class TestWsgi(trove_testtools.TestCase):
# assertions
ctx = req.environ[wsgi.CONTEXT_KEY]
self.assertThat(ctx, Not(Is(None)))
- self.assertThat(ctx.user, Equals(user_id))
+ self.assertThat(ctx.user_id, Equals(user_id))
self.assertThat(ctx.auth_token, Equals(token))
self.assertEqual(0, len(ctx.service_catalog))