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/utils.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/utils.py')
-rw-r--r-- | tests/rest/client/utils.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/rest/client/utils.py b/tests/rest/client/utils.py index 93f749744d..105d418698 100644 --- a/tests/rest/client/utils.py +++ b/tests/rest/client/utils.py @@ -136,7 +136,7 @@ class RestHelper: self.site, "POST", path, - json.dumps(content).encode("utf8"), + content, custom_headers=custom_headers, ) @@ -210,7 +210,7 @@ class RestHelper: self.site, "POST", path, - json.dumps(data).encode("utf8"), + data, ) assert ( @@ -309,7 +309,7 @@ class RestHelper: self.site, "PUT", path, - json.dumps(data).encode("utf8"), + data, ) assert ( @@ -392,7 +392,7 @@ class RestHelper: self.site, "PUT", path, - json.dumps(content or {}).encode("utf8"), + content or {}, custom_headers=custom_headers, ) |