Add unit test for /purge_room API

This commit is contained in:
Erik Johnston 2019-10-31 11:30:25 +00:00
parent c6bcd38841
commit 97c60ccaa3
2 changed files with 83 additions and 1 deletions

View file

@ -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"/")