tests: don't pass encoding to json.dumps (#36515)
This commit is contained in:
parent
1ec58ee869
commit
e0e128de4b
|
@ -861,8 +861,7 @@ def test_formdef_submit_from_wscall(pub, local_user):
|
|||
|
||||
payload = json.loads(
|
||||
json.dumps(formdata.get_json_export_dict(),
|
||||
cls=qommon.misc.JSONEncoder,
|
||||
encoding=get_publisher().site_charset))
|
||||
cls=qommon.misc.JSONEncoder))
|
||||
signed_url = sign_url('http://example.net/api/formdefs/test/submit?orig=coucou', '1234')
|
||||
url = signed_url[len('http://example.net'):]
|
||||
|
||||
|
@ -898,8 +897,7 @@ def test_formdef_submit_from_wscall(pub, local_user):
|
|||
|
||||
payload = json.loads(
|
||||
json.dumps(formdata.get_json_export_dict(),
|
||||
cls=qommon.misc.JSONEncoder,
|
||||
encoding=get_publisher().site_charset))
|
||||
cls=qommon.misc.JSONEncoder))
|
||||
signed_url = sign_url('http://example.net/api/formdefs/test/submit?orig=coucou', '1234')
|
||||
url = signed_url[len('http://example.net'):]
|
||||
|
||||
|
@ -913,8 +911,7 @@ def test_formdef_submit_from_wscall(pub, local_user):
|
|||
|
||||
payload = json.loads(
|
||||
json.dumps(formdata.get_json_export_dict(),
|
||||
cls=qommon.misc.JSONEncoder,
|
||||
encoding=get_publisher().site_charset))
|
||||
cls=qommon.misc.JSONEncoder))
|
||||
signed_url = sign_url('http://example.net/api/formdefs/test/submit?orig=coucou', '1234')
|
||||
url = signed_url[len('http://example.net'):]
|
||||
|
||||
|
|
Loading…
Reference in New Issue