Remove unnecessary json.dumps from tests (#13303)

This commit is contained in:
Dirk Klimpel 2022-07-17 23:28:45 +02:00 committed by GitHub
parent 5d4028f217
commit efee345b45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 143 additions and 200 deletions

View file

@ -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,
)