diff options
author | Erik Johnston <erik@matrix.org> | 2019-10-31 11:30:25 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-10-31 11:30:25 +0000 |
commit | 97c60ccaa35059a55866304f6850b24e99912036 (patch) | |
tree | 9dfea459415d385070807dec72cf5c41d59c86bf /tests/server.py | |
parent | Fix /purge_room API. (diff) | |
download | synapse-97c60ccaa35059a55866304f6850b24e99912036.tar.xz |
Add unit test for /purge_room API
Diffstat (limited to 'tests/server.py')
-rw-r--r-- | tests/server.py | 6 |
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"/") |