diff options
author | Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> | 2022-07-17 23:28:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-17 22:28:45 +0100 |
commit | efee345b454ac5e6aeb4b4128793be1fbc308b91 (patch) | |
tree | f7e49ed0f8f3f3c65a01e60c79434cbc1b617cb2 /tests/rest/client/test_identity.py | |
parent | Make all `process_replication_rows` methods async (#13304) (diff) | |
download | synapse-efee345b454ac5e6aeb4b4128793be1fbc308b91.tar.xz |
Remove unnecessary `json.dumps` from tests (#13303)
Diffstat (limited to 'tests/rest/client/test_identity.py')
-rw-r--r-- | tests/rest/client/test_identity.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/rest/client/test_identity.py b/tests/rest/client/test_identity.py index 299b9d21e2..dc17c9d113 100644 --- a/tests/rest/client/test_identity.py +++ b/tests/rest/client/test_identity.py @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -import json from http import HTTPStatus from twisted.test.proto_helpers import MemoryReactor @@ -51,12 +50,11 @@ class IdentityTestCase(unittest.HomeserverTestCase): self.assertEqual(channel.code, HTTPStatus.OK, channel.result) room_id = channel.json_body["room_id"] - params = { + request_data = { "id_server": "testis", "medium": "email", "address": "test@example.com", } - request_data = json.dumps(params) request_url = ("/rooms/%s/invite" % (room_id)).encode("ascii") channel = self.make_request( b"POST", request_url, request_data, access_token=tok |