summary refs log tree commit diff
path: root/tests/server.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-10-31 11:30:25 +0000
committerErik Johnston <erik@matrix.org>2019-10-31 11:30:25 +0000
commit97c60ccaa35059a55866304f6850b24e99912036 (patch)
tree9dfea459415d385070807dec72cf5c41d59c86bf /tests/server.py
parentFix /purge_room API. (diff)
downloadsynapse-97c60ccaa35059a55866304f6850b24e99912036.tar.xz
Add unit test for /purge_room API
Diffstat (limited to 'tests/server.py')
-rw-r--r--tests/server.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/server.py b/tests/server.py

index e397ebe8fa..469efb4edb 100644 --- a/tests/server.py +++ b/tests/server.py
@@ -161,7 +161,11 @@ def make_request( path = path.encode("ascii") # Decorate it to be the full path, if we're using shorthand - if shorthand and not path.startswith(b"/_matrix"): + if ( + shorthand + and not path.startswith(b"/_matrix") + and not path.startswith(b"/_synapse") + ): path = b"/_matrix/client/r0/" + path path = path.replace(b"//", b"/")