mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-12 16:12:10 -04:00
Remove unnecessary json.dumps
from tests (#13303)
This commit is contained in:
parent
5d4028f217
commit
efee345b45
13 changed files with 143 additions and 200 deletions
|
@ -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,
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue