summary refs log tree commit diff
path: root/tests/rest/admin/test_user.py
diff options
context:
space:
mode:
authorTravis Ralston <travisr@element.io>2024-11-20 07:48:22 -0700
committerGitHub <noreply@github.com>2024-11-20 14:48:22 +0000
commitd0a474d312443a0ef6ebdbd9c6d3b3fd24a3500c (patch)
tree1a73b0dd5bce9c9cb667a935ae67b87fa9933f83 /tests/rest/admin/test_user.py
parentSupport both import names of PyPI package `python-multipart`. (#17932) (diff)
downloadsynapse-d0a474d312443a0ef6ebdbd9c6d3b3fd24a3500c.tar.xz
Enable authenticated media by default (#17889)
Co-authored-by: Olivier 'reivilibre <oliverw@matrix.org>
Diffstat (limited to 'tests/rest/admin/test_user.py')
-rw-r--r--tests/rest/admin/test_user.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/rest/admin/test_user.py b/tests/rest/admin/test_user.py

index 668ccb89ff..6d050e7784 100644 --- a/tests/rest/admin/test_user.py +++ b/tests/rest/admin/test_user.py
@@ -45,6 +45,7 @@ from synapse.rest.client import ( devices, login, logout, + media, profile, register, room, @@ -3517,6 +3518,7 @@ class UserMediaRestTestCase(unittest.HomeserverTestCase): servlets = [ synapse.rest.admin.register_servlets, login.register_servlets, + media.register_servlets, ] def prepare(self, reactor: MemoryReactor, clock: Clock, hs: HomeServer) -> None: @@ -4023,7 +4025,7 @@ class UserMediaRestTestCase(unittest.HomeserverTestCase): # Try to access a media and to create `last_access_ts` channel = self.make_request( "GET", - f"/_matrix/media/v3/download/{server_and_media_id}", + f"/_matrix/client/v1/media/download/{server_and_media_id}", shorthand=False, access_token=user_token, )